# NOT RUN {
##Sample R codes used to analyze the data set: cot
library(minque)
data(cot)
names(cot)
cot$Geno=factor(cot$Geno)
cot$Loc=factor(cot$LOC)
cot$Rep=factor(cot$REP)
res=lmm(LY~1|Geno*Loc+Loc:Rep,data=cot)
res$Var
res$FixedEffect
res$RandomEffect
res=lmm.jack(LY~1|Geno*Loc+Loc:Rep,data=cot,JacNum=10,JacRep=1,ALPHA=0.05)
res$Var
res$PVar
res$FixedEffect
res$RandomEffect
##End
# }
Run the code above in your browser using DataLab