simdist: Simulate multiple hospitalization curves

View source: R/simcrv_funs.R

simdistR Documentation

Simulate multiple hospitalization curves

Description

Simulate multiple hospitalization curves

Usage

simdist(
  nreps,
  seed = 1971,
  gimme = NULL,
  check = FALSE,
  check_nrow = 10,
  sim_args = list()
)

Arguments

nreps

Numeric. Number of hypothetical hospitalization curves to generate.

seed

Numeric. Set random number generator seed.

gimme

Character. Can take three values: NULL, "everything", or "hc". NULL returns a data.frame containing the simulated hospitalization curves, labeled with a run id; "everything" returns both the full results of simcrv() and the labeled simulations; "hc" returns only the results of simcrv(). Default: NULL

check

Logical. Print preview of data.table containing labeled hypothetical hospitalization curves.

sim_args

List. A list of arguments to pass to simcrv via do.call. See ?do.call for more information.

nrow

Numeric. If check = TRUE, choose number of rows to preview. Because functions use data.table, nrow applies at both the head and the tail of the dataset. In other words, setting nrow to 10 would print 10 rows from the beginning of the dataset and 10 rows from the end of it.

Value

A set of simulated hospitalization curves numbering nreps.

See Also

simcrv


jrgant/FluHospPrediction documentation built on May 7, 2023, 10:40 a.m.