# NOT RUN {
# }
# NOT RUN {
require("nlme")
data(Rail)
m3 <- lme(travel~1, random=~1|Rail, data=Rail)
vc(m3)
## effect variance stddev
## (Intercept) 615.3 24.81
## Residual 16.17 4.021
require("lme4")
m4 <- lmer(travel~1 + (1|Rail), data=Rail)
vc(m4)
## grp var1 var2 vcov sdcor
## Rail (Intercept) <NA> 615.3 24.81
## Residual <NA> <NA> 16.17 4.021
require("asreml")
ma <- asreml(travel~1, random=~Rail, data=Rail)
vc(ma)
## effect component std.error z.ratio constr
## Rail!Rail.var 615.3 392.6 1.6 pos
## R!variance 16.17 6.6 2.4 pos
# See vignette for rjags example
# To change the number of digits, use the print function.
print(vc(m3), dig=5)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab