extractOR {moonBook} | R Documentation |
Extract the odds ratios from a S3 object of glm
Description
Extract the odds ratios from a S3 object of glm
Usage
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
data(cancer,package="survival")
x=glm(status~rx+sex+age+obstruct+nodes,data=colon,family="binomial")
extractOR(x)
[Package moonBook version 0.3.1 Index]