Join your colleagues and SAS experts for the DASUG meeting on Thursday, July 13, at Dartmouth College. You can network with local SAS users, boost your skills, and learn about some of the latest SAS tools and technologies.
SAS is not case-sensitive.
Two types of comments: * I make a comment here; or /* I make a comment here */
Two basic components: the data step and the proc step.
The data step reads data into a SAS dataset.
The proc step analyzes the SAS dataset.
data begins a data step which manipulates datasets.
infile identifies an external raw data file to read.
input lists variable names in the input files
libname sets library or an engine to connect to Microsoft files.
set reads a SAS data set, or append.
proc contents are used to display contents of a data set.
proc print prints observations of variables in a data set.
proc means outputs descriptive statistics.
proc univariate outputs more descriptive statistics.
proc freq displays frequency tables, frequency charts, and crosstabs.
proc freq is also used for chi-square tests.
ods (Output delivery system) creates output in various formats.
proc sgplot produces many types of plots.
proc format creates formats.
label creates labels for variables.
rename changes the name of a variable in a data step.
if then executes a statement only if the condition is true.
merge merges files.
if and where are conditional statement for subsetting a dataset.
keep keeps named variables.
drop drops named variables.
proc sort sorts cases in a dataset.
proc ttest conducts t-tests, including one sample, two sample and paired.
proc reg conducts simple and multiple regression.
proc glm can be used for ANOVA models.
proc logistic conducts logistic regression.
proc npar1way conducts non-parametric analyses.
SAS is mainly used by faculty and researchers at Dartmouth. It's not a free stat software but our license fee is very low compared to a standalone SAS license if you purchase it directly from the vendor. If you need SAS license, please contact me.