Description Usage Arguments Value
View source: R/target_mean_expit.R
Shifts the linear component until the mean of the expit is the target mean.
1 | target_mean_expit(target_mean, linear_vector)
|
target_mean |
Desired target mean. |
linear_vector |
Basically X β (no shift). |
expit(linear_vector + a)
for some a
such that mean(expit(linear_vector + a))
is close to target_mean
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.