generate_regression_data | R Documentation |
Generate synthetic sparse regression data.
generate_regression_data( n = 100, p = 500, a = 5, b = 1, sparsity = 0.05, coeff_size = 1 )
n |
Number of data points |
p |
Dimensionality |
a |
Correlations are sampled as Beta(a,b) random variables. |
b |
Correlations are sampled as Beta(a,b) random variables. |
sparsity |
Proportion of nonzero coefficients. |
coeff_size |
Size of coefficients |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.