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)

toshi-ara/CIplot documentation built on May 24, 2019, 2:54 p.m.