| getJMCM | R Documentation |
Extract (or "get") "components" - in a generalized sense - from a fitted joint mean covariance model from an object of class "jmcmMod".
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)
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 |
jmcmMod: Extract or Get Generalized Components from a Fitted Joint
Mean Covariance Model
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.