getFormulae.asreml {asremlPlus} | R Documentation |
Gets the formulae from an asreml object.
Description
Gets the formula
e nominated in the which
argument from the call
stored in an asreml
object.
Usage
## S3 method for class 'asreml'
getFormulae(asreml.obj, which = c("fixed", "random", "residual"),
expanded = FALSE, envir = parent.frame(), ...)
Arguments
asreml.obj |
An object resulting from the fitting of
a model using |
which |
A |
expanded |
A |
envir |
The environment in which the |
... |
Arguments passed on to |
Value
A list
containing a component with each of the extracted
formula
(e), the name of a component being the formula
that it contains.
Author(s)
Chris Brien
See Also
Examples
## Not run:
data(Wheat.dat)
current.asr <- asreml(yield ~ Rep + WithinColPairs + Variety,
random = ~ Row + Column + units,
residual = ~ ar1(Row):ar1(Column),
data=Wheat.dat)
getFormulae(current.asr)
## End(Not run)