Learn R Programming

catfun

catfun simplifies existing functions for categorical data analysis.

Installation

devtools::install_github("nt-williams/catfun")

What’s inside

R currently supports a wide variety of tools for the analysis of categorical data. However, many functions are spread across a variety of packages with differing syntax and poor compatibility with each another.

To address this issue, catfun includes wrapper functions around existing functions for tests of proportions, power analyses for proportions, and measures of association into one structure.

For example, prop_test() combines the base R functions binom.test(), prop.test() and BinomCI() from the DescTools package into one. The 3 mentioned functions all perform important aspects of testing for differences among proportions but are now used to create one output with all relevant information within one spot.

Copy Link

Version

Install

install.packages('catfun')

Monthly Downloads

223

Version

0.1.4

License

MIT + file LICENSE

Maintainer

Nick Williams

Last Published

June 14th, 2019

Functions in catfun (0.1.4)

tavolo.matrix

Create 2 x k frequency tables
tavolo.table

Create 2 x k frequency tables
tavolo

Create 2 x k frequency tables
riskdiff.matrix

Risk difference
riskdiff.table

Risk difference
prop_test.matrix

Tests for equality of proportions
riskdiff

Risk difference
riskdiff.data.frame

Risk difference
tavolo.data.frame

Create 2 x k frequency tables
matched_or.data.frame

Matched pairs odds ratio from a data frame
prop_test.data.frame

Tests for equality of proportions
prop_test

Tests for equality of proportions
prop_test.table

Tests for equality of proportions
matched_or

Matched pairs odds ratio and confidence interval
prop_test.numeric

Tests for equality of proportions
prop_power

Power and sample size for 2 proportions
matched_or.table

Matched pairs odds ratio from a table
%>%

Pipe operator