Learn R Programming

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

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Craig McGowan

Last Published

January 10th, 2025

Functions in describedata (0.1.1)

pwcorr

Replica of Stata's pwcorr function
ladder

Replica of Stata's ladder function
sample_flow

Create table illustrating sample exclusions
bivariate_compare

Create publication-style table across one categorical variable
describedata

describedata: Miscellaneous descriptive and SAS/Stata duplicate functions
norm_dist_plot

Create density histogram with normal distribution overlaid
cor.prob

Calculate pairwise correlations
nagelkerke

Calculate Nagelkerke pseudo r-squared
gladder

Replica of Stata's gladder function
univar_freq

Univariate statistics for a discrete variable
stata_tidy

Tidy model output into similar format from Stata
proc_means

Replica of SAS's PROC MEANS