coef.melsm: Extract 'melsm' Coefficients

Description Usage Arguments Value Note Examples

View source: R/coef.melsm.R

Description

Extract coefficients for each cluster (e.g., person, etc.), which obtained by adding the fixed effect to each random effect.

Usage

1
2
## S3 method for class 'melsm'
coef(object, cred = 0.95, ...)

Arguments

object

melsm object

cred

credible interval

...

currently ignored

Value

3D array of class coef.melsm

Note

this function differs from nlme, in that additional information (not only the coefficients) is returned in a list. This is used to plot the coefficients (plot.coef.melsm)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
dat <- nlme::Orthodont
fit <- melsm(fixed_location = distance ~  age,
            random_location = ~ age | Subject,
            fixed_scale = sigma ~  1, k = 3,
            random_scale = ~ 1 | Subject,
            adapt = 5000,
            iter = 10000,
            rho_test = "all",
            mixture = "SSVS",
            data = dat)

coef(fit, cred = 0.90)

## End(Not run)

donaldRwilliams/hypMuVar documentation built on Jan. 10, 2020, 9:45 a.m.