iidr: The Infinite Improbability Drive

Description Usage Arguments

Description

Generates a random sample of individuals.

Usage

 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, ...)

Arguments

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.


bbartholdy/hitchr documentation built on Nov. 21, 2021, 9:16 p.m.