View source: R/simulate_data.R
simulate_data | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.