Description Usage Arguments Value Note Author(s) Examples
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'.
1 | 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<dgdzc@hotmail.com>, Yuantao Hao<haoyt@mail.sysu.edu.cn>
1 2 3 4 |
Beta CI P
x -0.686 ( -1.281 , -0.092 ) 0.053
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.