pubh2.0.0 package

A Toolbox for Public Health and Epidemiology

axis_labs

Apply labels from variables to axis-labels in plots.

bar_error

Bar charts with error bars.

bland_altman

Bland-Altman agreement plots.

box_plot

Construct box plots.

bst

Bootstrap Confidence Intervals.

coef_det

Coefficient of determination.

estat

Descriptive statistics for continuous variables.

expand_df

Expand a data frame.

freq_cont

Relative and Cumulative Frequency.

gen_bst_df

Generate a data frame with estimate and bootstrap CIs.

geo_mean

Geometric mean.

get_r2

Estimate R2 or Pseudo-R2 from regression models

gf_star

Annotating a plot to display differences between groups.

glm_coef

Table of coefficients from generalised linear models.

harm_mean

Harmonic mean.

hist_norm

Histogram with Normal density curve.

inv_logit

Inverse of the logit

jack_knife

Ranks leverage observations from Jackknife method.

knife_mean

Jackknife for means.

leverage

Leverage.

logistic_gof

Goodness of fit for Logistic Regression.

mhor

Mantel-Haenszel odds ratio.

model_labels

Using labels as coefficient names in tables of coefficients.

multiple

Multiple comparisons with plot.

odds_trend

Function to calculate OR using Wald CI, and plot trend.

predict_inv

Given y solve for x in a simple linear model.

prop_or

Proportion, p1 from proportion p2 and OR.

pseudo_r2

Pseudo R2 (logistic regression) pseudo_r2 Calculates R2 analogues (p...

qq_plot

Quantile-quantile plots against the standard Normal distribution.

rank_influence

Ranks observations based upon influence measures on models.

rank_leverage

Ranks observations by leverage.

reference_range

Reference range (reference interval).

rel_dis

Relative Dispersion.

round_pval

Rounding p-values.

ss_jk

Sum of squares for Jackknife.

stats_quotes

Internal function to calculate descriptive statistics.

strip_error

Strip plots with error bars.

A toolbox for making R functions and capabilities more accessible to students and professionals from Epidemiology and Public Health related disciplines. Includes a function to report coefficients and confidence intervals from models using robust standard errors (when available), functions that expand 'ggplot2' plots and functions relevant for introductory papers in Epidemiology or Public Health. Please note that use of the provided data sets is for educational purposes only.

  • Maintainer: Josie Athens
  • License: GPL-2
  • Last published: 2024-10-08