coef.asreml {asreml} | R Documentation |
Extract model coefficients from an asreml
object.
## S3 method for class 'asreml' coef(object, list = FALSE, pattern = character(0), ...)
object |
An |
list |
If |
pattern |
A term in the model as a character string; if an interaction then
separate the term names in the string by “:”. A regular
expression is constructed from |
... |
Additional arguments. |
If neither pattern
nor list
is set, then a list of
length 3 with the following components:
solutions to the mixed model equations for the fixed (dense) terms.
E-BLUPs for the effects in the random model.
solutions to the mixed model equations for the fixed sparse-stored terms.
where each component is a matrix with a dimnames
attribute.
If list=TRUE
, a list object where each component is a single
column matrix corresponding to a term in the model; othwerwise a
single column matrix of effects as specified by pattern
.
## Not run: data(oats) oats.asr <- asreml(yield ~ Variety*Nitrogen, random = ~ Blocks/Wplots, data=oats) coef(oats.asr) coef(oats.asr, list=TRUE) coef(oats.asr, pattern="Blocks:Wplots") ## End(Not run)