View source: R/continuous_tuning.R
| continuous_tuning | R Documentation |
Finds the beta_signal value that produces a target large-sample
R^2 under the exact data-generating settings (complexity,
nonlinear_strength, correlation, distribution, predictor_type).
continuous_tuning(
r2,
candidate_features,
proportion_noise_features,
complexity = 1,
nonlinear_strength = NULL,
correlation = 0,
distribution = "normal",
predictor_type = "continuous",
binary_prevalence = 0,
n_sim = 1e+05
)
r2 |
Target large-sample |
candidate_features |
Total number of predictors (signal + noise). |
proportion_noise_features |
Proportion of |
complexity |
Integer 1-4 controlling the functional form of the linear predictor passed to the data generator. Default = 1. |
nonlinear_strength |
Fraction of signal variance carried by the
nonlinear component (C2/C3 only), in [0, 1). When |
correlation |
Common pairwise predictor correlation. Default = 0. |
distribution |
Global continuous predictor distribution family passed
to the data generator. Default = |
predictor_type |
|
binary_prevalence |
Bernoulli probability for binary predictors.
Required (and used) only when |
n_sim |
Sample size used to estimate Var(LP). Larger values give more stable estimates. Default = 100 000. |
A named numeric vector:
beta_signalTuned effect size.
r2_achievedEmpirical R^2 verified in a large simulation.
var_lp_unitEstimated Var(LP) at beta_signal = 1 (the scaling constant).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.