OR_95CI: odds ratio function

View source: R/OR_95CI.R

OR_95CIR Documentation

odds ratio function

Description

a function that returns OR (95% CI) for each variable as character string

Usage

OR_95CI(coef, se, siglevel, roundto)

Arguments

coef

numeric vector of parameter estimates

se

numeric vector of standard error estimates

siglevel

significance level

roundto

number of decimal places to display

Value

character string of OR (95% CI)

Author(s)

Aya Mitani

Examples

m1 <- glm(y ~ x1 + x2, family = binomial("logit"), data = toydata)
m1coef <- summary(m1)$coef
OR_95CI(m1coef[,1], m1coef[,2], 0.05, 2)

ayamitani/test documentation built on April 15, 2022, 12:04 a.m.