ORci: Calculate odds ratios and their confidence intervals from...

Description Usage Arguments Value Examples

Description

Calculate odds ratios and their confidence intervals from glm object

Usage

1
ORci(x, conf.level = 0.95)

Arguments

x

glm object (logistic regression only!).

conf.level

the confidence interval. Default is 0.95.

Value

an object ORci and matirix classes with four columns.

OR

odds ratio

lwr

lower conficence intarval

upr

upper conficence intarval

p.value

P value by logistic regression

Examples

1
2
3
4
5
6
7
require(graphics)
require(MASS)
data(birthwt)
x <- glm(low ~  age + lwt + smoke + ptl + ht + ui, data = birthwt,
         family = binomial)
OR1 <- ORci(x)
CIplot(OR1, las = 1)

Example output

Loading required package: MASS
Waiting for profiling to be done...

CIplot documentation built on May 1, 2019, 9:23 p.m.