Title: | An Easy Way to Report Regression Analysis |
---|---|
Description: | Provides an easy way to report the results of regression analysis, including: 1. Proportional hazards regression from function 'coxph' of package 'survival'; 2. Conditional logistic regression from function 'clogit' of package 'survival'; 3. Ordered logistic regression from function 'polr' of package 'MASS'; 4. Binary logistic regression from function 'glm' of package 'stats'; 5. Linear regression from function 'lm' of package 'stats'; 6. Risk regression model for survival analysis with competing risks from function 'FGR' of package 'riskRegression'; 7. Multilevel model from function 'lme' of package 'nlme'. |
Authors: | Zhicheng Du, Yuantao Hao |
Maintainer: | Zhicheng Du<[email protected]> |
License: | GPL-3 |
Version: | 0.3.0 |
Built: | 2025-03-01 02:48:54 UTC |
Source: | https://github.com/cran/reportReg |
Provides an easy way to report the results of regression analysis, including: 1. Proportional hazards regression from function 'coxph' of package 'survival'; 2. Conditional logistic regression from function 'clogit' of package 'survival'; 3. Ordered logistic regression from function 'polr' of package 'MASS'; 4. Binary logistic regression from function 'glm' of package 'stats'; 5. Linear regression from function 'lm' of packages 'stats'; 6. Risk regression model for survival analysis with competing risks from function 'FGR' of package 'riskRegression'; 7. Multilevel model from function 'lme' of package 'nlme'.
reportReg(fit,expTr)
reportReg(fit,expTr)
fit |
object of regression, including 'survival::coxph', 'survival::clogit', 'MASS::polr', 'glm', 'lm' and 'riskRegression::FGR' |
expTr |
TRUE or FALSE, should the coefficients be transformed by exponential function, default is TRUE |
OR |
odds ratio |
HR |
hazard ratio |
Beta |
regression coefficient |
CI |
95 percent confidence interval |
P |
p value |
Please feel free to contact us, if you have any advice and find any bug!
More functions will be included in 'reportReg' package!
Update description:
Version 0.2.0: 1. the model with just intercept can be identified. 2. risk regression model for survival analysis with competing risks was included and supported. 3. the estimated statistic of cox regression is updated from 'OR' to 'HR'. 4. multilevel model was included and supported.
Version 0.3.0: 1. argument 'expTr' was added. 2. the 'clogit' fucntion from 'survival' package was added in the description and argument of 'fit'. 3. the 'coxph' function with 'cluster' was available.
Zhicheng Du<[email protected]>, Yuantao Hao<[email protected]>
x=rnorm(10) y=rnorm(10) fit=lm(y~x) reportReg(fit)
x=rnorm(10) y=rnorm(10) fit=lm(y~x) reportReg(fit)