Learn R Programming

⚠️There's a newer version (0.1.1) of this package.Take me there.

describedata

This package contains functions written to replicate certain data analysis actions that I've found helpful in biostatistical and epidemiological research. It also contains R replicas of some functions from SAS and Stata to conduct similar analyses and display the results in a similar manner to the functions of those programs. Note that there has not been a concerted effort to fully replicate those all aspects of these functions - more functionality may be added on in the future but the current focus has been on aspects of the functions that have seemed most useful. If there is additional functionality you'd like to see included, please submit an issue on GitHub.

Installation

You can install the released version of describedata from CRAN with:

install.packages("describedata")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("craigjmcgowan/describedata")

Copy Link

Version

Install

install.packages('describedata')

Monthly Downloads

704

Version

0.1.0

License

GPL-3

Maintainer

Craig McGowan

Last Published

August 2nd, 2019

Functions in describedata (0.1.0)

ladder

Replica of Stata's ladder function
nagelkerke

Calculate Nagelkerke pseudo r-squared
univar_freq

Univariate statistics for a discrete variable
stata_tidy

Tidy model output into similar format from Stata
describedata

describedata: Miscellaneous descriptive and SAS/Stata duplicate functions
gladder

Replica of Stata's gladder function
norm_dist_plot

Create density histogram with normal distribution overlaid
proc_means

Replica of SAS's PROC MEANS
pwcorr

Replica of Stata's pwcorr function
sample_flow

Create table illustrating sample exclusions
cor.prob

Calculate pairwise correlations
bivariate_compare

Create publication-style table across one categorical variable