x <- as.factor(c(1:5,1:5,1:5));x
dsc(x)
## how to use the theta and thetaC arguments:
# data(DT_example)
# DT <- DT_example
# theta <- diag(3)*2; theta # initial VCs
# thetaC <- diag(3)*3; thetaC # fixed VCs
# ans1 <- mmec(Yield~Env,
# random= ~ vsc( dsc(Env,theta = theta,thetaC = thetaC),isc(Name) ),
# rcov= ~ units,
# data=DT)
# summary(ans1)$varcomp
Run the code above in your browser using DataLab