logit_to_prob: Logit to probability

Description Usage Arguments Value References Examples

View source: R/logit_to_prob.r

Description

The function transforms a logit value to a probability value.

Usage

1
  logit_to_prob(logit)

Arguments

logit

numeric vector of logit values

Value

Probability value of the logit value served as input.

References

Examples

1
2
3
4
  data <- supportR::create_data()
  mod <- glm(female_ceo ~ board_size, data = data, family = "binomial")
  coefs <- coef(mod)
  logit_to_prob(logit = coefs[["board_size"]])

ha-pu/supportR documentation built on Sept. 13, 2020, 5:52 p.m.