logit, inverse logit, odds and the one-unit odds ratio exp(b):
equations 1.3, 4.1 to 4.8 of Weisburd et al. (2022). Mirrors ca1e3,
ca4e1 to ca4e8.
Usage
morie_logit_link(p = 0.5, xb = 0, b = 0)
Arguments
- p
Probability strictly between 0 and 1.
- xb
Linear predictor value.
- b
Logistic regression coefficient.
Value
List with logit(p), odds(p), p_from_xb, odds_ratio.
Examples
morie_logit_link()
#> $logit
#> [1] 0
#>
#> $odds
#> [1] 1
#>
#> $p_from_xb
#> [1] 0.5
#>
#> $odds_ratio
#> [1] 1
#>