parsim_multinom: Simulate from mutinomial, parallelized

Description Usage Arguments

View source: R/parallelized.R

Description

Simulate matrix of draws from multinomial

Usage

1
parsim_multinom(nsims, nreps, probs, names, ncores = 4)

Arguments

nsims

Number of size=1 sims from the multinomials

nreps

Number of times to replicate the nsims. Put the smaller number here, the bigger one as nsims

probs

Vector of probabilities for each of the K categories

names

Vector of names associated with each of the categories. Must be of same length as probs. Can be character or numeric. Use numeric row IDs if you're referring to a group defined by multiple variables whose groupings are defined in a separate data frame


cancerpolicy/bcimodel documentation built on Feb. 13, 2018, 2:06 p.m.