Displaying 2 results from an estimated 2 matches for "testsamp".
Did you mean:
testcamp
2010 May 13
3
Help with Loops
Hi
I have tried many attempts but cant get the loop right, as I am not a strong programmer. What I am basically trying to do is compare 2 spreadsheets. The problem is that one of them only contain a portion of the overall data (TESTSAMP), where the other has a full datasetFULLSAMP. From the complete set I would like to remove the rows of data which are not in the TESTSAMP. Column 1 contains the sample numbers which can be used to identify samples. Does anyone have any suggestions?
I have tried various things like double loops an...
2009 May 21
2
Naming a random effect in lmer
...the set of random effects has
dimension 8, then the lmer call is:
Zs<- paste("Z",1:mb,sep="")
Trendformula <-as.formula(paste("LogY ~ WYear + (1+WYear|Site) + (1|",
paste(paste(Zs,collapse="+"), ")")))
fit2.4a<-lmer(Trendformula, data = testsamp)
which, for mb=8, expands to:
fit1<-lmer(LogY ~ WYear + (1 | Site) + (1 | Year) + (1 | Z1+ Z2 + Z3 + Z4 +
Z5 + Z6 + Z7 + Z8), data = testsamp)
I have no problems with this. However, if the set of random effects has a
dimension of 30, then the lmer call is:
fit2<-lmer(LogY ~ WYear + (1...