Learn R Programming

epitab

Provides contingency tables for descriptive stats for epidemiology in R. Alongside the cross-tabulated frequencies, epitab can provide summary statistics such as coefficients from regression models, and summary statistics of continuous variables with respect to the outcome of interest. A variety of useful summary measures are provided with epitab, but the package is also designed in such a way to allow the user to supply their own statistics, allowing for a flexible approach to table design that can be employed in a variety of situations. The ability to export the resulting tables to publication friendly formats is also provided, including HTML, LaTeX, and Word.

Usage

See the User Guide vignette for examples of the tables that can be built, and how to export these to other documents.

Installation

The latest stable release can be installed from CRAN by running install.packages('epitab'), while the latest development version can be installed from the development Github repository by using devtools::install_github('stulacy/epitab').

Copy Link

Version

Install

install.packages('epitab')

Monthly Downloads

261

Version

0.2.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stuart Lacy

Last Published

July 4th, 2018

Functions in epitab (0.2.2)

summary_mean

Builds a function to calculate the mean of a continuous variable for each level of an outcome.
summary_median

Builds a function to calculate the median of a continuous variable for each level of an outcome.
print.contintab

Prints the contingency table as an ASCII table
neat_table

Displays a neatly formatted contingency table.
odds_ratio

Builds a function used to calculate odds ratios.
freq

Builds a function to calculate cross-tabulated frequencies
contingency_table

Builds a contingency table
hazard_ratio

Builds a function used to calculate hazard ratios.