knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(rdemopkg)

We can use the logit command to calculate the log odds of a vector of probabilities. For example,

logit(probabilities$p)


mark-andrews/rdemopkg documentation built on Dec. 21, 2021, 2:46 p.m.