extractOR: Extract the odds ratios from a S3 object of glm

Description Usage Arguments Value Examples

View source: R/ORplot.R

Description

Extract the odds ratios from a S3 object of glm

Usage

1
extractOR(x, digits = 2, method = "default")

Arguments

x

A S3 object of glm

digits

An integer indicating the number of decimal places (round) or significant digits to be used. Default value is 2.

method

Method to compute confidence interval. Choices are one of c("default","LRT").

Value

A data.frame consist of odds ratios and 95 p values

Examples

1
2
3
data(cancer,package="survival")
x=glm(status~rx+sex+age+obstruct+nodes,data=colon,family="binomial")
extractOR(x)

moonBook documentation built on Jan. 5, 2022, 9:06 a.m.