Original PDF Flash format A-Comparison-of-SAS-and-SPSS-Products-with-R-Packages-and-Functions  


A Comparison Of SAS And SPSS Products With R Packages And Functions

A Comparison of SAS and SPSS Products
with R Packages and Functions

With over 1,200 add-on packages, many containing multiple procedures, R can do almost everything that SAS and
SPSS can do and quite a bit more. People are releasing new packages at a rapid pace and R can give you the latest
count with the following two commands. The first one uses the available.packages function to check
Internet repositories for the packages that are currently available and store them in myPackageNames. The second
command determines the number of unique names.
> myPackageNames <- available.packages()
> length(unique( rownames(myPackageNames) ))

[1] 1449

So at the time of publication, there were 1,449 add-on packages. If you use the setRepositories() function
(or Packages> Select repositories… on Windows) to add the bioinformatics packages, the number is even higher at
2,242.

The table below focuses only on SAS and SPSS products and which of them have counterparts in R. As a result,
some categories are extremely broad (e.g. regression) while others are quite narrow (e.g. conjoint). This list does
not contain the hundreds of R packages that have no counterparts in the form of SAS or SPSS products. There are
many important topics (e.g. mixed models, offered by all three) that are not listed because neither SAS nor SPSS sell
a product focused just on that.

Much more detailed information about R packages is available organized in Task Views at
http://cran.r-project.org/web/views/index.html. Another site to search by task is at
http://biostat.mc.vanderbilt.edu/s/finder/finder.html. Detailed information about most R packages is available at
http://www.r-project.org/, choose CRAN, then choose a mirror, then choose Packages.

Table B.1. Comparison of SAS and SPSS products to R packages.
TOPIC SAS PRODUCT
SPSS PRODUCT
R PACKAGE
(some are package-function)
Advanced Models
SAS/STAT®
SPSS Advanced Models™
stats, MASS, many others
Basics
SAS® SPSS
Base™ R
Conjoint Analysis
SAS/STAT®:
SPSS Conjoint™
homals, psychoR, bayesm
Transreg

Correspondence
SAS/STAT®:
SPSS Categories™
homals, MASS,
Analysis
Corresp
FactoMineR, ade4, PTAk,
cocorresp, vegan,
made4, PsychoR
Custom Tables
SAS Base® Report,
SPSS Custom Tables™
reshape
SQL, Tabulate
Data Access
SAS/ACCESS®
SPSS Data Access Pack™
DBI, foreign, RODBC
Data Mining
Enterprise Miner™
Clementine®
rattle, arules,

FactoMineR
Data Preparation
Various procedures
Various procedures, SPSS
dprep, various functions
Data Preparation™
Exact Tests
SAS/STAT®:
SPSS Exact Tests™
coin, elrm,
various
exactLoglinTest,
exactmaxsel,
exactRankTests, and as
options in many others
Genetics
SAS/Genetics®,
None Bioconductor
at
SAS/Microarray®
http://www.bioconductor.org/
Solution®, JMP
Genomics®
Geographic
SAS/GIS®,
SPSS Maps™
maps, mapdata, mapproj,
Information
SAS/Graph®
(no full GIS)
GRASS via spgrass6,
Systems/Mapping
RColorBrewer, see Spatial in
Task Views link above
Graphical User
Enterprise Guide®
SPSS Base™
JGR, R Commander, pmg,
Interface
Sciviews
Graphics –
SAS/INSIGHT® None
GGobi
via
rggobi
Interactive with
iPlots, Mondrian via Rserve
linked windows
Graphics - Static
SAS/GRAPH® SPSS
Base™
ggplot, gplots,
graphics, grid,
gridBase, hexbin,
lattice, plotrix,
scatterplot3d, vcd,
vioplot, geneplotter,
Rgraphics,
Guided Analysis
SAS/LAB® None
None




Matrix/Linear
SAS/IML®,
SPSS Matrix™
R, matlab, Matrix,
Algebra
SAS/STAT
sparseM
Workshop®
Missing Values
SAS/STAT®: MI
SPSS Missing Values
Hmisc-aregImpute, EMV,
Imputation
Analysis™
Design -
fit.mult.impute, mice,
mitools, mvnmle
Operations Research
SAS/OR® None
glpk, linprog,
LowRankQP, TSP
Power Analysis
SAS® Power and
SamplePower™
asypow, powerpkg, pwr,
Sample Size
MBESS
Application,
SAS/STAT: Power,
GLM Power
Quality Control
SAS/QC® SPSS
Base™
qcc,
spc
Regression Models
SAS/STAT®
SPSS Regression Models™
R, Hmisc, Design,
lasso, VGAM, pda
Sampling, Complex
SAS/STAT®:
SPSS Complex Samples™
pps, sampfling,

or Survey
surveymeans, etc.
sampling, spsurvey,
survey
Structural Equations SAS/STAT®: Calis
Amos™
sem
Text Analysis
Text Miner
SPSS Text Analysis for
Rstem, lsa, tm
Surveys™, Text Miner for
Clementine®
Time Series
SAS/ETS®
SPSS Trends™ Expert
Over 40 packages that do time
Modeler
series are described at Task View
link above under Econometrics.
Time Series,
SAS Forecast
SPSS Trends,
forecast
Automated
Studio®
DecisionTime/WhatIf™
Trees, Decision or
Enterprise Miner™
SPSS Classification
ada, adabag, BayesTree,
Regression
Trees™, AnswerTree™
boost, GAMboost, gbev,
gbm, maptree, mboost,
mvpart, party, pinktoe,
quantregForest, rpart,
rpart.permutation,
randomForest,
randomForests, tree


This table is located in the Springer book, R for SAS and SPSS Users, by Robert A. Muenchen, Appendix B.
It is also available at http://RforSASandSPSSusers.com .

Compiled by Robert A. Muenchen (muenchen@utk.edu) with greatly appreciated input from Thomas E.
Adams, Jonathan Baron, Roger Bivand, Jason Burke, Patrick Burns, David L. Cassell, Chao Gai, Dennis
Fisher, Bob Green, Frank E. Harrell Jr, Max Kuhn, Paul Murrell, Charilaos Skiadas, Antony Unwin and
Tobias Verbeke. Thanks to Henrique Dallazuanna for the code to count packages.

Copyright © 2006, 2007, 2008 Robert A. Muenchen. All rights reserved.
SAS products are registered trademarks of SAS Institute Inc.
SPSS Products are registered trademarks of SPSS, Inc.