varcomp(formula, data=<<see below>>, method="minque0", start.var=<<see below>>, tol=<<see below>>, nderiv = 1...)
MINQUE0 estimates are computed as in Hartley, Rao, and LaMotte (1978).
Variances components are obtained via unconstrained optimization using the NETLIB functions dmnf, dmng, and dmnh (Gay (1983), Dongarra and Grosse (1987)). The objective function and derivatives are computed using a version of the W-transformation (Hemmerle and Hartley (1973), Corbeil and Searle (1976)) that is numerically stable when the variance component estimates are small in magnitude (Fraley and Burns (1992)).
The Winsorization method produces robust estimates of the variance components. The data are "cleaned" using an initial robust estimate, and then a standard estimation procedure is performed on the cleaned data. See Burns (1992) for more information.
The raov function produces ANOVA estimates for balanced random models.
Corbeil, R. R. and Searle, S. R. (1976). Restricted maximum likelihood (REML) estimation of variance components in the mixed model. Technometrics 18 31-38.
Dongarra, J. J. and Grosse, E. (1987). Distribution of mathematical software via electronic mail. Communications of the ACM 30 403-407.
Fraley, C. and Burns, P. J. (1995). Large-scale estimation of variance and covariance components. SIAM Journal on Scientific Computing Vol. 16 No. 1.
Gay, D. M. (1983). Algorithm 611. Subroutines for Unconstrained Minimization using a Model/ Trust-Region Approach. ACM Transactions on Mathematical Software, 9 369-383.
Hartley, H. O., Rao, J. N. K., and LaMotte, L. R. (1978). A simple "synthesis"-based mathod of variance component estimation. Biometrics 34 233-242.
Hemmerle, W. J. and Hartley, H. O. (1973). Computing maximum likelihood estimates for the mixed AOV model using the W-transformation. Technometrics 15 819-831.
is.random(pigment) <- T # make all factors random varcomp(Moisture ~ Batch/Sample, pigment)varcomp(Moisture ~ Batch/Sample, pigment, method=c("winsor", "r"))
# if subject is a random factor and time.point is numeric, then # the following model gives a random slope and intercept for each # subject, plus an overall fixed slope and intercept
varcomp(response ~ time.point * subject)