Learn R Programming

ouch (version 2.20)

coef: Model coefficients

Description

coef extracts the parameters from a fitted model object.

Usage

# S4 method for hansentree
coef(object, ...)

# S4 method for browntree coef(object, ...)

Value

coef applied to a hansentree object returns a named list containing the estimated \(\alpha\) and \(\sigma^2\) matrices(given as the alpha.matrix and sigma.sq.matrix elements, respectively) but also the MLE returned by the optimizer (as sqrt.alpha and sigma, respectively). The latter elements should not be interpreted, but can be used to restart the algorithm, etc.

coef applied to a browntree object extracts a list with three elements:

sigma

the coefficients of the sigma matrix.

theta

a list of the estimated optima, one per character.

sigma.sq.matrix

the sigma-squared matrix itself.

Arguments

object

fitted model object.

...

additional arguments, ignored.

See Also

Other methods for ouch trees: as_data_frame, bootstrap(), logLik, ouch-package, paint(), plot(), print(), simulate(), summary(), update()