Learn R Programming

jmcm (version 0.1.2.0)

getJMCM: 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", "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: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object

sub.num
refer to i's subject

Methods (by class)

  • jmcmMod: Extract or Get Generalized Components from a Fitted Joint Mean Covariance Model

Examples

Run this code
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)

Run the code above in your browser using DataLab