View source: R/draw_sample_pred.R
draw_sample_pred | R Documentation |
Draw a sample from the predictive (mbeta-mbin) distribution
draw_sample_pred(
dist,
sample = 100,
size = rep(1, groups(dist)),
method_pred = c("mbeta_approx", "rmvbin"),
method_ext = c("basic", "cov"),
count = TRUE,
msg = TRUE
)
dist |
|
sample |
either a precomputed |
size |
sample size(s) for predictive count data |
method_pred |
character, for drawing predictive sample, either "mbeta_approx" (recommended) or "rmvbin" |
method_ext |
character, method for sample 'extension', either "basic" (default) or "cov" |
count |
logical, should outcome be counts (TRUE; default) or probabilities (FALSE) |
msg |
logical, should messages be displayed? (default: TRUE) |
Approximation of predictive mbeta-mbin (multivariate beta - multivariate binomial) distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.