mixed-effects: Draw posterior samples from mixed effects models

Description Usage Arguments Value

Description

draw_fixef(), draw_ranef(), and draw_coef() are analogous to the functions lme4::fixef(), lme4::ranef(), and lme4:::coef.merMod() except that they return a tidy data-frame and return posterior samples.

Usage

1
2
3
4
5
6
7
draw_fixef(model, nsamples = NULL)

draw_ranef(model, nsamples = NULL)

draw_coef(model, nsamples = NULL)

draw_var_corr(model, nsamples = NULL)

Arguments

model

a mixed effects model fit with rstanarm

nsamples

the number of posterior samples to draw. Defaults to all samples.

Value

a long/tidy tibble::tibble(). Each row contains a posterior sample of a parameter.


tjmahr/tristan documentation built on May 8, 2019, 9:46 a.m.