coef.ICCier: Extract group-specific values

Description Usage Arguments Value

View source: R/predict.R

Description

Takes ICCier object and returns group-specific values.

Usage

1
2
3
## S3 method for class 'ICCier'
coef(object, summary = TRUE, prob = 0.95,
  predict = FALSE)

Arguments

object

ICCier object

summary

Logical. Whether to return summary (mean, intervals) of ICCs (TRUE), or posterior samples (FALSE)

prob

A number p (0 < p < 1) indicating the desired probability mass to include in the intervals.

predict

Logical (Default = FALSE). If TRUE, the group-specific effect is the predicted value and the random effect; e.g., g_{0i} = X^{(2)}G + u_{0i}. If FALSE, the group-specific effect is the fixed effect and the random effect; e.g., g_{0i} = g_0 + u_{0i}. The latter is akin to what brms computes.

Value

3D array. If 'summary = TRUE' (default): '[group, statistic, random effect]'. If 'summary = FALSE': '[group, random effect, MCMC sample]'


stephensrmmartin/ICCier documentation built on Aug. 22, 2019, 10 a.m.