reportReg (version 0.1.0)

reportReg: An Easy Way to Report Regression Analysis

Description

Provides an easy way to report the results of regression analysis, including: 1. Proportional hazards regression model from function 'coxph' of package 'survival'; 2. Ordered logistic regression from function 'polr' of package 'MASS'; 3. Binary logistic regression from function 'glm' of package 'stats'; 4. Linear regression from function 'lm' of packages 'stats'.

Usage

reportReg(fit)

Arguments

fit

object of regression, including 'survival::coxph', 'MASS::polr', 'glm', and 'lm'

Value

OR

odds ratio

CI

95 percent confidence interval

P

p value

Examples

Run this code
# NOT RUN {
x=rnorm(10)
y=rnorm(10)
fit=lm(y~x)
reportReg(fit)
# }

Run the code above in your browser using DataCamp Workspace