All Projects → mayoverse → Arsenal

mayoverse / Arsenal

An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Arsenal

Mlr
Machine Learning in R
Stars: ✭ 1,542 (+801.75%)
Mutual labels:  statistics, r-package, cran
Minicran
R package to create internally consistent, mini version of CRAN
Stars: ✭ 123 (-28.07%)
Mutual labels:  r-package, cran
Rinside
Seamless embedding of R in C++ programs
Stars: ✭ 112 (-34.5%)
Mutual labels:  r-package, cran
Simmer
Discrete-Event Simulation for R
Stars: ✭ 170 (-0.58%)
Mutual labels:  r-package, cran
Openml R
R package to interface with OpenML
Stars: ✭ 81 (-52.63%)
Mutual labels:  statistics, cran
Wooldridge
The official R data package for "Introductory Econometrics: A Modern Approach". A vignette contains example models from each chapter.
Stars: ✭ 90 (-47.37%)
Mutual labels:  r-package, cran
Stldecompose
A Python implementation of Seasonal and Trend decomposition using Loess (STL) for time series data.
Stars: ✭ 130 (-23.98%)
Mutual labels:  statistics, modeling
Pkgsearch
Search R packages on CRAN
Stars: ✭ 73 (-57.31%)
Mutual labels:  r-package, cran
Pinp
Pinp Is Not PNAS -- Two-Column PDF Template
Stars: ✭ 134 (-21.64%)
Mutual labels:  r-package, cran
Appelpy
Applied Econometrics Library for Python
Stars: ✭ 136 (-20.47%)
Mutual labels:  statistics, modeling
Tableone
R package to create "Table 1", description of baseline characteristics with or without propensity score weighting
Stars: ✭ 151 (-11.7%)
Mutual labels:  statistics, cran
Markovchain
Easy Handling Discrete Time Markov Chains
Stars: ✭ 80 (-53.22%)
Mutual labels:  r-package, cran
Projpred
Projection predictive variable selection
Stars: ✭ 76 (-55.56%)
Mutual labels:  statistics, r-package
Volume approximation
Practical volume computation and sampling in high dimensions
Stars: ✭ 75 (-56.14%)
Mutual labels:  statistics, cran
Webservices
CRAN WebTechnologies Task View
Stars: ✭ 160 (-6.43%)
Mutual labels:  r-package, cran
Drat
Drat R Archive Template
Stars: ✭ 127 (-25.73%)
Mutual labels:  r-package, cran
Configr
Implements the JSON, INI, YAML and TOML parser, for R setting and writing of configuration file.
Stars: ✭ 38 (-77.78%)
Mutual labels:  r-package, cran
Nanotime
Nanosecond Resolution Time Functionality for R
Stars: ✭ 39 (-77.19%)
Mutual labels:  r-package, cran
Rblpapi
R package interfacing the Bloomberg API from https://www.bloomberglabs.com/api/
Stars: ✭ 133 (-22.22%)
Mutual labels:  r-package, cran
Osrm
Shortest Paths and Travel Time from OpenStreetMap with R
Stars: ✭ 160 (-6.43%)
Mutual labels:  r-package, cran

The arsenal Package Arsenal logo

CRAN_Status_Badge Total Downloads Downloads Travis-CI Build Status

Overview

The goal of library(arsenal) is to make statistical reporting easy. It includes many functions which the useR will find useful to have in his/her "arsenal" of functions. There are, at this time, 6 main functions, documented below. Each of these functions is motivated by a local SAS macro or procedure of similar functionality.

Note that arsenal v3.0.0 is not backwards compatible with previous versions (mainly because compare() got renamed to comparedf()). See the NEWS file for more details.

arsenal now has a pkgdown site: https://mayoverse.github.io/arsenal/

The tableby() Function

tableby() is a function to easily summarize a set of independent variables by one or more categorical variables. Optionally, an appropriate test is performed to test the distribution of the independent variables across the levels of the categorical variable. Options for this function are easily controlled using tableby.control().

The tableby() output is easily knitted in an Rmarkdown document or displayed in the command line using the summary() function. Other S3 methods are implemented for objects from tableby(), including print(), [, as.data.frame(), sort(), merge(), padjust(), head(), and tail().

The paired() Function

paired() is a function to easily summarize a set of independent variables across two time points. Optionally, an appropriate test is performed to test the distribution of the independent variables across the time points. Options for this function are easily controlled using paired.control().

The paired() output is easily knitted in an Rmarkdown document or displayed in the command line using the summary() function. It has the same S3 methods as tableby(), since it's a special case of the tableby() object.

The modelsum() Function

modelsum() is a function to fit and summarize models for each independent variable with one or more response variables, with options to adjust for covariates for each model. Options for this function are easily controlled using modelsum.control().

The modelsum output is easily knitted in an Rmarkdown document or displayed in the command line using the summary() function. Other S3 methods are implemented for objects from modelsum(), including print(), [, as.data.frame(), and merge().

The freqlist() Function

freqlist() is a function to approximate the output from SAS's PROC FREQ procedure when using the /list option of the TABLE statement. Options for this function are easily controlled using freq.control().

The freqlist() output is easily knitted in an Rmarkdown document or displayed in the command line using the summary() function. Other S3 methods are implemented for objects from freqlist(), including print(), [, as.data.frame(), sort(), and merge(). Additionally, the summary() output can be used with head() or tail().

The comparedf() Function

comparedf() compares two data.frames and reporting any differences between them, much like SAS's PROC COMPARE procedure.

The comparedf() output is easily knitted in an Rmarkdown document or displayed in the command line using the summary() function. Other S3 methods are implemented for objects of class "comparedf", including print(), n.diffs(), n.diff.obs(), and diffs().

The write2*() Family of Functions

write2word(), write2pdf(), and write2html() are functions to output a table into a document, much like SAS's ODS procedure. The S3 method behind them is write2(). There are methods implemented for tableby(), modelsum(), freqlist(), and comparedf(), and also methods for knitr::kable(), xtable::xtable(), and pander::pander_return(). Another option is to coerce an object using verbatim() to print out the results monospaced (as if they were in the terminal)--the default method does this automatically. To output multiple tables into a document, simply make a list of them and call the same function as before. A YAML header can be added using yaml(). Code chunks can be written using code.chunk().

For more information, see vignette("write2").

Other Notable Functions

  • keep.labels() keeps the 'label' attribute on an R object when subsetting. loosen.labels() allows the labels to drop again.

  • formulize() is a shortcut to collapse variable names into a formula.

  • mdy.Date() and Date.mdy() convert numeric dates for month, day, and year to Date object, and vice versa.

  • is.Date: tests if an object is a date.

  • %nin% tests for "not in", the negation of %in%.

  • allNA() tests for all elements being NA, and includeNA() makes NAs explicit values.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].