Skip to content

brendensm/hm878

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hm878

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")

Main Functions

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 model
  • chi_log — a function to calculate the Pearson's goodness of fit to a logistic regression model
  • predict_percent — a function to calculate an accuracy percentage for a logistic regression model based off of predicted probabilities
  • fences — a function to calculate the upper and lower fences of a continuous variable
  • compare_models — a function to compare output from multiple models
  • deviance_aic — a function that compares only null deviance, residual deviance, and AIC between multiple models

Examples

To view a complete walkthrough of each function, view the package vignette found here

About

Helper Functions for HM878

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages