ranef.lmmelsm: Extract random effects.

View source: R/ranef.R

ranef.lmmelsmR Documentation

Extract random effects.

Description

Ranef method for lmmelsm objects.

Usage

## S3 method for class 'lmmelsm'
ranef(object, prob = 0.95, summarize = TRUE, ...)

Arguments

object

lmmelsm object.

prob

Numeric (Default: .95). Amount of probability mass contained in the credible interval.

summarize

Logical (Default: TRUE). Whether to return posterior summaries (TRUE) or MCMC samples (FALSE).

...

Not used.

Details

Extracts the random effects from the lmmelsm object. Note that this is different from the random coefficients. E.g., if β_{0i} = β_0 + u_{0i}, then coef extracts β_{0i} and ranef extracts u_{0i}.

Value

List of ranef summaries (random_mu_intercept, random_logsd_intercept, random_mu_coef, and random_logsd_coef), or samples (if summarize = FALSE).

Author(s)

Stephen R. Martin


LMMELSM documentation built on Dec. 28, 2022, 1:32 a.m.