hansentree-methods {ouch} | R Documentation |
Methods of the "hansentree" class.
## S4 method for signature 'hansentree': logLik(object) ## S4 method for signature 'hansentree': coef(object, ...) ## S4 method for signature 'hansentree': summary(object, ...) ## S4 method for signature 'hansentree': show(object) ## S4 method for signature 'hansentree': print(x, ...) ## S4 method for signature 'hansentree': plot(x, y, regimes = NULL, node.names = FALSE, legend = TRUE, ..., labels) ## S4 method for signature 'hansentree': simulate(object, nsim = 1, seed = NULL, ...) ## S4 method for signature 'hansentree': update(object, data, regimes, alpha, sigma, ...) ## S4 method for signature 'hansentree': bootstrap(object, nboot = 200, seed = NULL, ...) ## S4 method for signature 'hansentree': as(object, class) ## S4 method for signature 'hansentree, data.frame': coerce(from, to = "data.frame", strict = TRUE)
object |
The hansentree object. |
x |
the hansentree object. |
class |
character;
name of the class to which object should be coerced.
|
from, to |
the classes betwen which coercion should be performed. |
nsim |
The number of simulations to perform. |
nboot |
The number of boostraps to perform. |
seed |
The random seed to use in simulations. |
regimes, alpha, sigma |
See hansen . |
node.names, legend, labels |
plot annotations. See plot-ouchtree for details. |
data |
see hansen . |
y, strict |
Ignored. |
... |
Further arguments (either ignored or passed to underlying functions).
In the case of update , these replace the corresponding arguments in the original call.
|
plot()
print()
show()
hansentree
object.
summary()
hansentree
object can be coerced to a data-frame via as(object,"data.frame")
.
coef()
alpha
:sigma
:theta
:alpha.matrix
:sigma..sq.matrix
:logLik()
update()
bootstrap()
simulate()
object
is the hansentree
object, nsim
is the desired number of replicates, and seed
is (optionally) the random seed to use.
simulate
returns a list of data-frames, each comparable to the original data.
Aaron A. King kingaa at umich dot edu