ranef.lmmelsm {LMMELSM} | R 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 \beta_{0i} = \beta_0 + u_{0i}
, then coef
extracts \beta_{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
[Package LMMELSM version 0.2.0 Index]