simulate_data {stabiliser} | R Documentation |
Simulate a dataset. This can optionally include variables with a given associated with the outcome.
simulate_data(nrows, ncols, n_true = 0, amplitude = 0)
nrows |
The number of rows to simulate. |
ncols |
The number of columns to simulate. |
n_true |
The number of variables truly associated with the outcome. |
amplitude |
The strength of association between true variables and the outcome. |
A simulated dataset