Description Usage Arguments Value References Examples
Function to obtain multivariate odds ratios from a logistic regression model.
1 | ORmultivariate(fit)
|
fit |
An object of class glm |
A list with elements
OR with 95% CI and corresponding p-values for each predictor in the model
Brier score
Nagelkerke's R2 value
Suman Kundu, Yurii S. Aulchenko and A. Cecile J.W. Janssens (2020). PredictABEL: Assessment of Risk Prediction Models. R package version 1.2-4.https://CRAN.R-project.org/package=PredictABEL Brier GW. Verification of forecasts expressed in terms of probability. Monthly weather review 1950;78:1-3. Nagelkerke NJ. A note on a general definition of the coefficient of determination. Biometrika 1991;78:691-692.
1 2 3 4 5 6 | form1=paste0("AMD~",paste0(colnames(ExampleData)[3:10],collapse="+"))
form2=paste0("AMD~",paste0(colnames(ExampleData)[3:16],collapse="+"))
fit1=glm(as.formula(form1),data=ExampleData,family=binomial)
fit2=glm(as.formula(form2),data=ExampleData,family=binomial)
ORmultivariate(fit1)
ORmultivariate(fit2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.