View source: R/data_generators.R
| generate_predictors | R Documentation |
Draws all predictors from a single global distribution family. With a
non-zero correlation, they are drawn through a Gaussian copula with a
common pairwise correlation.
generate_predictors(
n,
n_signal_parameters,
noise_parameters,
complexity = 1,
predictor_type = "continuous",
binary_prevalence = 0,
correlation = 0.3,
distribution = "normal"
)
n |
Sample size. |
n_signal_parameters |
Number of signal predictors. |
noise_parameters |
Number of noise predictors. |
complexity |
Integer 1-4 (used to resolve the C4 distribution default). |
predictor_type |
|
binary_prevalence |
Bernoulli probability; used when
|
correlation |
Scalar common pairwise correlation; 0 = independent. |
distribution |
Global continuous distribution family; used when
|
Named n x p numeric matrix (column names: x1, x2, ...).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.