buildsim.binary {simitation} | R Documentation |
This function is designed to generate binary data based on the provided formula. It is an internal function and is not meant for end-users.
buildsim.binary(the.formula, the.variable, n, num.experiments = 1)
the.formula |
A character string specifying the distribution function, e.g., "binary(0.5)". |
the.variable |
A character string naming the variable in the generated data. |
n |
An integer specifying the number of data points to generate for each experiment. |
num.experiments |
An integer specifying the number of experiments to simulate. Default is 1. |
A data frame with simulated binary values based on the given formula.