An R package with helpful functions for HM878: Applied Biostatistics for Public Health Practitioners
To install the package run the following line of code:
devtools::install_github("brendensm/hm878")
This package was developed to introduce helper functions for common tasks in the class's assignments. These functions save us some time and energy. Helper functions currently include:
or
— a function to calculate odds ratios and confidence intervals for a logistic regression modelchi_log
— a function to calculate the Pearson's goodness of fit to a logistic regression modelpredict_percent
— a function to calculate an accuracy percentage for a logistic regression model based off of predicted probabilitiesfences
— a function to calculate the upper and lower fences of a continuous variablecompare_models
— a function to compare output from multiple modelsdeviance_aic
— a function that compares only null deviance, residual deviance, and AIC between multiple models
To view a complete walkthrough of each function, view the package vignette found here