Learn R Programming

pubh

A toolbox for Public Health and Epidemiology

pubh is an R package for making R functions and capabilities more accessible to students and professionals from epidemiology and public health related disciplines.

Information on use with examples can be found in "vignettes".

Copy Link

Version

Install

install.packages('pubh')

Monthly Downloads

542

Version

2.0.0

License

GPL-2

Maintainer

Josie Athens

Last Published

October 8th, 2024

Functions in pubh (2.0.0)

box_plot

Construct box plots.
freq_cont

Relative and Cumulative Frequency.
geo_mean

Geometric mean.
logistic_gof

Goodness of fit for Logistic Regression.
mhor

Mantel-Haenszel odds ratio.
gen_bst_df

Generate a data frame with estimate and bootstrap CIs.
strip_error

Strip plots with error bars.
Vanderpump

Smoking and mortality in Whickham, England.
jack_knife

Ranks leverage observations from Jackknife method.
rank_influence

Ranks observations based upon influence measures on models.
qq_plot

Quantile-quantile plots against the standard Normal distribution.
inv_logit

Inverse of the logit
stats_quotes

Internal function to calculate descriptive statistics.
ss_jk

Sum of squares for Jackknife.
odds_trend

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

Estimate R2 or Pseudo-R2 from regression models
estat

Descriptive statistics for continuous variables.
knife_mean

Jackknife for means.
leverage

Leverage.
expand_df

Expand a data frame.
glm_coef

Table of coefficients from generalised linear models.
gf_star

Annotating a plot to display differences between groups.
round_pval

Rounding p-values.
rel_dis

Relative Dispersion.
hist_norm

Histogram with Normal density curve.
predict_inv

Given y solve for x in a simple linear model.
harm_mean

Harmonic mean.
model_labels

Using labels as coefficient names in tables of coefficients.
rank_leverage

Ranks observations by leverage.
reference_range

Reference range (reference interval).
multiple

Multiple comparisons with plot.
pseudo_r2

Pseudo R2 (logistic regression) pseudo_r2 Calculates R2 analogues (pseudo R2) of logistic regression.
prop_or

Proportion, p1 from proportion p2 and OR.
Brenner

Prevalence of Helicobacter pylori infection in preschool children.
bland_altman

Bland-Altman agreement plots.
bst

Bootstrap Confidence Intervals.
coef_det

Coefficient of determination.
Kirkwood

Body weight and plasma volume.
Hodgkin

T-cell counts from Hodgkin's disease patients.
Oncho

Onchocerciasis in Sierra Leone.
Roberts

Extracorporeal membrane oxygenation in neonates.
Sandler

Passive smoking in adulthood and cancer risk.
Sharples

Measured and self-reported weight in New Zealand.
Bernard

Survival of patients with sepsis.
Fentress

Migraine pain reduction.
Tuzson

Peak knee velocity in walking at flexion and extension.
Rothman

Oral contraceptives and stroke.
Macmahon

Breast cancer and age of childbirth.
Thall

RCT on the treatment of epilepsy.
axis_labs

Apply labels from variables to axis-labels in plots.
bar_error

Bar charts with error bars.