Flexible Contingency Tables for Epidemiology

Builds contingency tables that cross-tabulate multiple categorical variables and also calculates various summary measures. Export to a variety of formats is supported, including: 'HTML', 'LaTeX', and 'Excel'.


Travis-CI Build Status

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

News

0.2.2

Added the ability to provide column-wise proportions, as these are frequently more useful than row-wise. Also column and row wise functions now also operate on marginals

0.2.1

Hotfix to a display bug in neat_table when have more than one col_func.

0.2.0

Refactored to allow for user-provided summary measures, for column-wise, row-wise and cross-tabulated statistics. Initial CRAN submission.

0.1.0

Initial development version. Supports contingency tables and regression coefficients.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("epitab")

0.2.2 by Stuart Lacy, 8 months ago


https://github.com/stulacy/epitab


Browse source code at https://github.com/cran/epitab


Authors: Stuart Lacy


Documentation:   PDF Manual  


GPL-2 license


Imports kableExtra, knitr, MASS, survival, xml2

Suggests dplyr, rmarkdown


See at CRAN