draw_sample_pred: Draw a sample from the predictive (mbeta-mbin) distribution

View source: R/draw_sample_pred.R

draw_sample_predR Documentation

Draw a sample from the predictive (mbeta-mbin) distribution

Description

Draw a sample from the predictive (mbeta-mbin) distribution

Usage

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
)

Arguments

dist

SIMPle.dist object, representing a multivariate beta distribution see define_dist

sample

either a precomputed SIMPle.sample object or an integer specifying the sample size

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)

Details

Approximation of predictive mbeta-mbin (multivariate beta - multivariate binomial) distribution


maxwestphal/SIMPle documentation built on April 11, 2024, 4:07 p.m.