sim_distr | R Documentation |
Simulate data variables with known distributions
sim_distr(n, k, distr, ...)
n |
Number of observations. |
k |
Number of variables. |
distr |
A vector of distributions to be used in each variable. It could be "normal", "exponential", "poisson", "weibull", "chisquare" or "uniform". In case to use the same distribution for all variables, set it as distr = "distr". |
... |
Arguments specific to each distribution. See |
sim_distr
gives a data frame with the observations as rows and the variables as columns
rnorm
,
rexp
,
rpois
,
rweibull
,
rchisq
,
runif
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.