update.asreml {asreml} | R Documentation |
Extract and evaluate the call
from the fitted object,
replacing any arguments with changed values. In particular,
G.param
and R.param
are automatically updated with
those stored in the object.
## S3 method for class 'asreml' update(object, fixed., random., sparse., residual., keep.order = TRUE, evaluate = TRUE, ...)
object |
A valid |
fixed. |
Changes to the fixed formula. This is a two sided formula where
|
random. |
Changes to the random formula. This is a one sided formula where
|
sparse. |
Changes to the sparse formula. This is a one sided formula where
|
residual. |
Changes to the residual formula. This is a one sided formula where
|
keep.order |
If |
evaluate |
If |
... |
Additional arguments to the call, or arguments with changed values. |
In addition to any other changes, update.asreml
replaces the
arguments R.param
and G.param
with
object\$R.param
and object\$G.param
, respectively,
creating a new fitted object when run using the parameter values
from a previous model as initial values.
Either a new updated asreml
object, else an unevaluated
expression for creating such an object.
## Not run: data(oats, package="asreml") oats.asr <- asreml(yield ~ Variety+Nitrogen, random = ~ Blocks/Wplots, data=oats) oats2.asr <- update(oats.asr, fixed = . ~ . + Variety:Nitrogen) ## End(Not run)