buildsim.binary {simitation} | R Documentation |
Internal function for Simulation for Binary Data
Description
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.
Usage
buildsim.binary(the.formula, the.variable, n, num.experiments = 1)
Arguments
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. |
Value
A data frame with simulated binary values based on the given formula.
[Package simitation version 0.0.7 Index]