update {ouch} | R Documentation |
update
will update a model and re-fit.
This allows one to change the data and/or parameters.
## S4 method for signature 'browntree'
update(object, data, ...)
## S4 method for signature 'hansentree'
update(object, data, regimes, sqrt.alpha, sigma, ...)
object |
fitted model object. |
data |
data that replace those used in the original fit. |
... |
Additional arguments replace the corresponding arguments in the original call. |
regimes |
A vector of codes, one for each node in the tree, specifying the selective regimes hypothesized to have been operative.
Corresponding to each node, enter the code of the regime hypothesized for the branch segment terminating in that node.
For the root node, because it has no branch segment terminating on it, the regime specification is irrelevant.
If there are |
sqrt.alpha |
These are used to initialize the optimization algorithm.
The selection strength matrix |
sigma |
These are used to initialize the optimization algorithm.
The selection strength matrix |
update
returns a new fitted-model object of the same class as object
.
Other methods for ouch trees:
bootstrap()
,
coef()
,
logLik
,
ouch-package
,
paint()
,
plot()
,
print()
,
simulate()
,
summary()