Displaying 1 result from an estimated 1 matches for "sampfac".
Did you mean:
ampfac
2011 Jan 19
2
VarCorr
...uot; for each run from
the VarCorr. Thanks
MCruns<-1000
sighatlvec<-rep(NA,MCruns)
sighatbvec<-rep(NA,MCruns)
sighatevec<-rep(NA,MCruns)
for(mc in 1:MCruns)
{
samples<-(sqrt(sigbsq)*rnorm(6))
labs<-(sqrt(siglsq)*rnorm(2))
errors<-(sqrt(sigesq)*rnorm(24))
y<-errors+samples[sampfac]+labs[labfac]
lmer<-lmer(y~1+(1|sampfac)+(1|labfac))
print(VC<-VarCorr(lmer))
}