tidy_samples {mcp} | R Documentation |
Get tidy samples with or without varying effects
Description
Returns in a format useful for fit$simulate()
with population parameters in wide format
and varying effects in long format (the number of rows will be nsamples * n_levels_in_varying
).
Usage
tidy_samples(
fit,
population = TRUE,
varying = TRUE,
absolute = FALSE,
prior = FALSE,
nsamples = NULL
)
Arguments
fit |
An |
population |
|
varying |
One of:
|
absolute |
|
prior |
TRUE/FALSE. Summarise prior instead of posterior? |
nsamples |
Integer or |
Value
tibble
of posterior draws in tidybayes
format.
Author(s)
Jonas Kristoffer Lindeløv jonas@lindeloev.dk