Generates a random sample of individuals.
1 2 3 4 5 6 7 8 9 10 | infinite_improbability_drive(
n,
race = race_index(),
na_prob = NULL,
quiet = T,
symm = T,
...
)
iidr(n, race = race_index(), na_prob = NULL, quiet = T, symm = T, ...)
|
n |
number of individuals to generate. |
race |
which races to include in the generated sample. Default is all. |
na_prob |
Numeric. Proportion of values that should be missing at random. Must be a number between 0 and 1. |
quiet |
if FALSE, will print a statement about the odds of a random event. Default is TRUE. |
symm |
logical. whether the missing values should be inserted symmetrically, i.e., whether each column should contain the same number of NAs. |
... |
can be used to pass 'stats' through to race-specific functions. see example. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.