SAS-2-R logo

SAS-2-R

the SAS interface for R

Dear R users,

Biostatistics Denmark would like to annouce the availability of the new utility: sas2R --- a SAS to R parser.

For almost 40 years SAS has been the primary tool for statisticians worldwide and its easy-to-learn syntax, unsurpassed graphical system, powerful macro language and recent graphical user interfaces have made SAS the number one statistical software choice for both beginners and advanced users.

We find it unnecessary for users to learn another statistical software packages and have decided to make SAS available to a larger audience by providing a SAS interface to the free statistical software package R. It is our hope that the sas2R utility eventually will prove as powerful as the true SAS system and we believe that this release marks the beginning of a new era for R.

The utility consists of a parser (written in perl) that rewrites the SAS code as R code and a package (sastor) of utility functions that are needed to run the parsed code. sastor consists mainly of functions for presenting output in the familiar and canonical SAS format.

For an example of sas2R please look here.

Here is the DESCRIPTION file for the package:

Package: sas2r
Version: 1.04
Title: SAS-to-R parser
Author: Rolf Poalis <rolf@biostatistics.dk>
Maintainer: Rolf Poalis <rolf@biostatistics.dk>
Description: A collection of functions for running SAS code in R.
Depends: R (>= 1.4.0), perl >= 5.8.0
License: GPL
URL: www.biostatistics.dk/sas2r/index.html

The following SAS procedures are parsed succesfully:

PROC CONTENTS
PROC CORR
PROC FREQ
PROC GLM
PROC MEANS
PROC NPAR1WAY
PROC PRINT
PROC REG
PROC SORT
PROC TTEST
PROC UNIVARIATE

The following SAS procedures work to some degree:

PROC GENMOD
PROC GPLOT
PROC MIXED

Note: All SAS procedure calls must include a DATA= option.

We look forward to receiving questions, comments and suggestions.

Rolf Poalis, Biostatistics Denmark

Download the complete sas2r package