R/OR_function.R

Defines functions OR_function

Documented in OR_function

##############################################################
#' OR_function
#' @description computes the odds ratio
#' @keywords internal
#' @export
#' @return Odds ratio calculation based on marginal probabilities

OR_function<- function(p0, p1){

  OR<- (p1/(1-p1))/(p0/(1-p0))
  return(OR)
}

Try the eselect package in your browser

Any scripts or data that you put into this service are public.

eselect documentation built on Feb. 16, 2023, 8:11 p.m.