search for: tempmat

Displaying 5 results from an estimated 5 matches for "tempmat".

Did you mean: templat
2008 Nov 08
1
Clustering and functions
...ot sure why, but I keep getting a run-time error. Any suggestions would be greatly appreciated. Here is the code: library(cba) d<-read.csv("data.csv", header=TRUE) v<-c(53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,21,72 73,74,75,76,77,78) clusterMe<-function(d,v){ tempMat<-subset(d,d[,v[1]]=="TRUE") rc<-rockCluster(tempMat,n=5,theta=.2) tempMat<-cbind(tempMat,rc$cl) M<-tempMat for (i in 2:26){ tempMat<-subset(d,d[,v[i]]=="TRUE") rc<-rockCluster(tempMat,n=5,theta=.2) tempMat<-cbind(tempMat,rc$cl) M<-rbind(M,temp...
2007 May 23
1
I made some progress on my previous "systemfit" question but still not quite there
Surprisingly, I played around with some test code and below actually creates equations that look correct. tempmat<-matrix(10,nrow=6,ncol=6) restrictmat<-diag(6) colnames(tempmat)<-c("AUD.l1","CHF.l1","CAD.l1","GBP.l1","EUR.l1","JPY.l 1") rownames(tempmat)<-c("AUD","CHF","CAD","GBP","EUR",&...
2006 Apr 19
1
Probable Numeric Bugs in svd function (PR#8781)
...*usHigh+sigmas[5]*euLow+sigmas[6]*euHigh=0D temp10<-sigmas[3]*usLow+sigmas[4]*usHigh+sigmas[7]*euLow+sigmas[8]*euHig=0D h=0D CorrEU<-0.89=0D CorrUS<-0.82=0D =0D CorrR<-matrix(0,2*SN.nb,2*SN.nb)=0D diag(CorrR)<-c(temp1^2,temp10^2)=0D =0D temp<-ifelse(Region=3D=3D1,CorrUS,CorrEU)=0D tempMat<-matrix(0,SN.nb,SN.nb)=0D diag(tempMat)<-temp*temp1*temp10=0D CorrR[(SN.nb+1):(2*SN.nb),1:SN.nb]<-tempMat=0D CorrR[1:SN.nb,(SN.nb+1):(2*SN.nb)]<-tempMat=0D =0D CorrR is positive definite but "svd" returns negative singular values!=0D When replacing 0s by very week noises, the...
2004 Jul 29
3
Editing Strings in R
I was wondering if there is a way of editting strings in R. I have a set of strings and each set is a row of numbers and paranthesis. For example the first row is: (0 2)(3 4)(7 9)(5 9)(1 5) and I have a thousand or so such rows. I was wondering how I could get the corresponding string obtained by adding 1 to all the numbers in the string above. Dursun [[alternative HTML version deleted]]
2003 Feb 21
0
Linear mixed effects models
...ave approximately 1400-1800 data/time points per person (13 in total). Observations were made how the focus of neuronal activity changed spatially while processing of a frequency-modulated tone. Regression analysis was performed for each individual using orthogonal polynomials ... regtemp <- lm(tempmat[,j] ~ poly(tempmat[,1],degree=i)) ... up to degree = 5. Based on the median (i.e. over all individuals) adjusted R-square, it could be seen that a linear approach yielded about .5 adj-R2, adding a quadratic term increased R2 to about .7 (adding further terms didn't increase adj-R2 in a signifi...