target_mean_expit: target_mean_expit

Description Usage Arguments Value

View source: R/target_mean_expit.R

Description

Shifts the linear component until the mean of the expit is the target mean.

Usage

1
target_mean_expit(target_mean, linear_vector)

Arguments

target_mean

Desired target mean.

linear_vector

Basically X β (no shift).

Value

expit(linear_vector + a) for some a such that mean(expit(linear_vector + a)) is close to target_mean.


rzgross/uRbanmatching documentation built on Dec. 22, 2021, 8:20 p.m.