A Toolbox for Public Health and Epidemiology

bar_error | Bar charts with error bars. |

Bernard | Survival of patients with sepsis. |

bland_altman | Bland-Altman agreement plots. |

box_plot | Construct "pretty" box plots in lattice. |

Brenner | Prevalence of Helicobacter pylori infection in preschool... |

bst | Bootstrap Confidence Intervals. |

chisq.fisher | Internal test for chi-squared assumption.Fisher (2 by 2). If... |

coef_det | Coefficient of determination. |

coef_plot | Plot of model coefficients. |

contingency | Measures of association from two by two contingency tables... |

contingency2 | Measures of association from two by two contingency tables... |

diag_test | Diagnostic tests from variables. |

diag_test2 | Diagnostic tests from direct input. |

estat | Descriptive statistics for continuous variables. |

expand_df | Expand a data frame. |

Fentress | Migraine pain reduction. |

freq_cont | Relative and Cumulative Frequency. |

gen_bst_df | Generate a data frame with estimate and bootstrap CIs. |

geo_mean | Geometric mean. |

glm_coef | Table of coefficients from generalised linear models. |

harm_mean | Harmonic mean. |

hist_norm | Histogram with Normal density curve. |

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

inv_logit | Inverse of the logit |

jack_knife | Ranks leverage observations from Jackknife method. |

Kirkwood | Body weight and plasma volume. |

knife_mean | Jackknife for means. |

leverage | Leverage. |

logistic_gof | Goodness of fit for Logistic Regression. |

Macmahon | Breast cancer and age of childbirth. |

mhor | Mantel-Haenszel odds ratio. |

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

Oncho | Onchocerciasis in Sierra Leone. |

panel.errbars | Internal function for displaying error bars in lattice plots. |

panel.errbars1 | Internal function for displaying error bars in lattice plots. |

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... |

qq_plot | Quantile-quantile plots against the standard Normal... |

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. |

Roberts | Extracorporeal membrane oxygenation in neonates. |

Rothman | Oral contraceptives and stroke. |

round_pval | Rounding p-values. |

rvf_plot | Residual vs Fitted plot. |

Sandler | Passive smoking in adulthood and cancer risk. |

Sharples | Measured and self-reported weight in New Zealand. |

ss_jk | Sum of squares for Jackknife. |

stats_quotes | Internal function to calculate descriptive statistics. |

strip_error | Strip plots with error bars. |

Thall | RCT on the treatment of epilepsy. |

Tuzson | Peak knee velocity in walking at flexion and extension. |

Vanderpump | Smoking and mortality in Whickham, England. |

xymultiple | Multiple comparisons with plot. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.