flatten {durmod} | R Documentation |
mphcrm
stores coefficients in a list,
not in a vector. This is because they should be treated
differently according to whether they are probabilities,
proportional hazards, or coefficients for factor levels or
ordinary covariates. flatten
extracts them as a named
vector. unflatten
puts them back in structured form.
flatten(x, exclude = attr(x, "exclude")) unflatten(flesh, skeleton = attr(flesh, "skeleton"), exclude = attr(flesh, "exclude"))
x |
parameter set as typically found in |
exclude |
For internal use |
flesh |
vector of class |
skeleton |
For internal use |
flatten
/unflatten
is just a thinly disguised
unlist
/relist
, but uses
slightly more readable names.