MyNixOS website logo
Description

Recreates Some 'SAS®' Procedures in 'R'.

Contains functions to simulate the most commonly used 'SAS®' procedures. Specifically, the package aims to simulate the functionality of 'proc freq', 'proc means', 'proc ttest', 'proc reg', 'proc transpose', 'proc sort', and 'proc print'. The simulation will include recreating all statistics with the highest fidelity possible.

procs version procs lifecycle procs downloads procs total downloads R-CMD-check Codecov test coverage

Introduction to procs

The purpose of the procs package is to recreate commonly used SAS® procedures in R. This version of the package will attempt to simulate PROC FREQ, PROC MEANS, PROC TTEST, and PROC REG. Subsequent versions of the package will add more statistical procedures.

The package will also include a conceptual reproduction of PROC TRANSPOSE, PROC SORT, and PROC PRINT. The reason these procedures are included is because they are frequently used in conjunction with the statistical procedures to prepare results for reporting.

There are three motivations for simulating SAS® statistical procedures in R:

1) Rich Outputs: R provides a wide range of statistical packages and functions. However, these statistical functions frequently return a fragmented output. The user is often left to compile R statistical results into a readable report themselves.

SAS® software, on the other hand, provides the same statistical results, but with rich outputs. These outputs include multiple datasets, plots, and complete statistical reports. These rich outputs could be a benefit to R users.

2) Pre-Validation: There is an industry-wide movement to adopt R for statistical analysis. This effort is complicated by the fact that R statistical procedures frequently do not produce identical output to SAS®. Many hours are burned trying to figure out why R statistical results do not match SAS® statistical results.

Therefore another goal of the package is to match SAS® statistics with as much fidelity as possible. If R statistical results match SAS® output, it makes it much easier to rewrite SAS® programs in R. This pre-validation will ultimately save the industry tens of thousands of hours of effort. Validation documentation is available here.

3) Ease of Adoption: Another important aspect of the package is to facilitate the adoption of R by SAS® programmers. SAS® programmers will easily understand and be comfortable with the functions in this package. They will become productive in R much faster than with Base R functions, or statistical functions from other packages.

4) Stability: SAS® software is renowned for its backwards compatibility. A final goal of the procs package is to create a set of functions with a similarly intense concern for stability. The package aims to avoid breaking changes at all costs. The dream is that programs written with these functions will still work years from now.

Installation

The easiest way to install the procs package is to run the following command from your R console:

install.packages("procs")

Then put the following line at the top of your script:

library(procs)

For examples and usage information, please visit the procs documentation site here


The procs package is under active development. If you want the latest development version, you can download from the github site by running the following code:

devtools::install_github("https://github.com/dbosak01/procs")    

Getting Help

If you need help, the first place to turn to is the procs web site.

If you want to look at the code for the procs package, visit the github page here.

If you encounter a bug or have a feature request, please submit an issue here.

The procs packages has been validated, and the validation documentation is here.

See Also

The procs package is part of the sassy meta-package. The sassy meta-package includes several packages that help make R easier. You can read more about the sassy package here.

Metadata

Version

1.0.6

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows