View source: R/mcpfit_methods.R
tidy_to_matrix | R Documentation |
Converts from the output of tidy_samples()
or pp_eval(fit, samples_format = "tidy")
to an N_draws
X nrows(newdata)
matrix with fitted/predicted values. This format is
used y brms
and it's useful as yrep
in bayesplot::ppc_*
functions.
tidy_to_matrix(samples, returnvar)
samples |
Samples in tidy format |
returnvar |
An |
An N_draws
X nrows(newdata)
matrix.
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.