CI_log_OR: confidence interval for log OR

View source: R/CI_log_OR.R

CI_log_ORR Documentation

confidence interval for log OR

Description

CI_log_OR() calculates confidence intervals for log odds ratios from the log odds ratios and data of two vectors representing the frequencies of: numerator; denominator.

Usage

CI_log_OR(log_OR, numerator, denominator, sig = 0.05, upper = TRUE)

Arguments

log_OR

log odds ratios

numerator

the column whose data are the frequencies of the numerator

denominator

the column whose data are the frequencies of the denominator

sig

significance level (i.e., 0.05 for 95% CI)

upper

logical, if TRUE (the default), return the upper limit of the confidence interval. Otherwise return its lower limit

Value

A vector of the confidence limit of the log odds ratios (either the upper or lower limit)

Examples

CI_log_OR(rnorm(10), rbinom(10, 1000, 0.8), rbinom(10, 1000, 0.1))


statcourses/dsEssex documentation built on Jan. 10, 2024, 4:32 p.m.