A function that extracts the variance components returned from glmm.
Usage
varcomps(object,...)
Arguments
object
An object of class glmm usually created using glmm.
...
further arguments passed to or from other methods.
Value
varcomps
A vector of variance component estimates
Author(s)
Christina Knudson
See Also
glmm for model fitting.
coef.glmm for fixed effects coefficients.
Examples
library(glmm)
set.seed(1234)
data(salamander)
#To get more accurate answers for this model, use m=10^4 or 10^5
#and doPQL=TRUE.
m<-10
sal<-glmm(Mate~0+Cross,random=list(~0+Female,~0+Male),varcomps.names=c("F","M"),
data=salamander,family.glmm=bernoulli.glmm,m=m,debug=TRUE,doPQL=FALSE)
varcomps(sal)