generate_random_dataset {stagedtrees} | R Documentation |
Generate a random binary dataset
Description
Randomly generate a data.frame of independent binary variables.
Usage
generate_random_dataset(p, n)
Arguments
p |
number of variables. |
n |
number of observations. |
Value
A data.frame with n
independent random variables.
Examples
DD <- generate_random_dataset(p = 5, n = 1000)
[Package stagedtrees version 2.3.0 Index]