View source: R/OptHoldoutSize_simulation.R
gen_base_coefs | R Documentation |
Generate coefficients corresponding to an imperfect risk score, interpretable as 'baseline' behaviour in the absence of a risk score
gen_base_coefs(coefs, noise = TRUE, num_vars = 2, max_base_powers = 1)
coefs |
Original coefficients |
noise |
Set to TRUE to add Gaussian noise to coefficients |
num_vars |
Number of variables at hand for baseline calculation |
max_base_powers |
If >1, return a matrix of coefficients, with successively more noise |
Vector of coefficients
# See examples for model_predict
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.