getJMCM {jmcm} | R Documentation |
Extract or Get Generalized Components from a Fitted Joint Mean Covariance Model
Description
Extract (or "get") "components" - in a generalized sense - from a fitted joint mean covariance model from an object of class "jmcmMod".
Usage
getJMCM(object, name, sub.num)
## S3 method for class 'jmcmMod'
getJMCM(object, name = c("m", "Y", "X", "Z", "W", "D", "T",
"Sigma", "mu", "n2loglik", "grad", "hess", "theta", "beta", "lambda", "gamma",
"loglik", "BIC", "iter", "triple"), sub.num = 0)
Arguments
object |
a fitted joint mean covariance model of class "jmcmMod", i.e., typically the result of jmcm(). |
name |
a character vector specifying the name(s) of the "component". When sub.num is not specified or equal to 0, possible values are:
When sub.num is specified, possible values are:
|
sub.num |
refer to i's subject |
Methods (by class)
-
jmcmMod
: Extract or Get Generalized Components from a Fitted Joint Mean Covariance Model
Examples
fit.mcd <- jmcm(I(sqrt(cd4)) | id | time ~ 1 | 1, data = aids,
triple = c(8, 1, 3), cov.method = 'mcd')
beta <- getJMCM(fit.mcd, "beta")
BIC <- getJMCM(fit.mcd, "BIC")
Di <- getJMCM(fit.mcd, "D", 10)