400 likes | 409 Views
Exploratory Data Analysis with SAS and R. Kristin Vanderbilt University of New Mexico. Outline:. SAS Introduction SAS/Insight Guided Data Analysis R Graphics capabilities. SAS windows. Program editor Log Output. Animal brain weight/body weight data. Importing data into SAS.
E N D
Exploratory Data Analysis with SAS and R Kristin Vanderbilt University of New Mexico
Outline: • SAS • Introduction • SAS/Insight • Guided Data Analysis • R • Graphics capabilities
SAS windows • Program editor • Log • Output
Explore data before doing regression Choose Summarize ….
Run the regression Choose Analyze ….
Other functions available under Guided Data Analysis …. • View and Edit data • Transform variables • Select and view specific observations • Query for subsets of data • Create a “journal” storing analysis results
SAS/Insight • Tool for data exploration and analysis • Analyze univariate distributions, • Investigate multivariate distributions, and • Fit explanatory models using ANOVA and regression
R: an Open Source alternative • There is an important difference in philosophy between S (and hence R) and the other main statistical systems. In S a statistical analysis is normally done as a series of steps, with intermediate results being stored in objects. Thus whereas SAS and SPSS will give copious output from a regression or discriminant analysis, R will give minimal output and store the results in a fit object for subsequent interrogation by further R functions.
Other graphical options in R: Copied from: http://www.r-project.org/
Image and 3D plot of volcano From: http://www.r-project.org/
References • http://www.r-project.org/ • http://cran.r-project.org/doc/contrib/Lemon-kickstart/index.html