| update.asreml {asreml} | R Documentation |
Update an asreml model fit
Description
Extracts and evaluates the call from the fitted asreml object,
replacing any arguments with changed values. In particular,
G.param and R.param are automatically updated with
those stored in the object. It is also used to perform a few additional
iterations of a model that has not converged.
Usage
## S3 method for class 'asreml'
update(
object,
fixed.,
random.,
sparse.,
residual.,
keep.order = TRUE,
evaluate = TRUE,
...
)
Arguments
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. |
Details
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.
Value
Returns either a new updated asreml object, or an unevaluated
expression for creating such an object.
Examples
## Not run:
oats.vsr <- asreml(yield ~ Variety+Nitrogen, random = ~ Blocks/Wplots, data = oats)
oats2.vsr <- update(oats.vsr, fixed = . ~ . + Variety:Nitrogen)
## End(Not run)