| extract_design {HLMdiag} | R Documentation |
Extracting covariance matrices from lme
Description
This function extracts the full covariance matrices from a mixed/hierarchical
linear model fit using lme.
Usage
extract_design(b)
Arguments
b |
a fitted model object of class |
Value
A list of matrices is returned.
Dcontains the covariance matrix of the random effects.Vcontains the covariance matrix of the response.Xcontains the fixed-effect model matrix.Zcontains the random-effect model matrix.
Author(s)
Adam Loy loyad01@gmail.com
References
This method has been adapted from the method
mgcv::extract.lme.cov in the mgcv package, written by Simon
N. Wood simon.wood@r-project.org.
[Package HLMdiag version 0.5.0 Index]