ORci {CIplot}R Documentation

Calculate odds ratios and their confidence intervals from glm object

Description

Calculate odds ratios and their confidence intervals from glm object

Usage

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

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)

[Package CIplot version 1.0 Index]