Helper function to quickly simulate from a distribution with given parameters.
distrSimulate(
n = 100,
distribution = "Normal",
pars = list(),
simplify = TRUE,
seed,
...
)number of points to simulate.
distribution to simulate from, corresponds to ClassName of distr6 distribution,
abbreviations allowed.
parameters to pass to distribution. If omitted then distribution defaults used.
if TRUE (default) only the simulations are returned, otherwise the constructed distribution
is also returned.
passed to set.seed
additional optional arguments for set.seed
If simplify then vector of n simulations, otherwise list of simulations and distribution.