Review of Texas A&M’s Online Statistics Masters

When I first began researching schools to get my master's, the number of choices available were overwhelming. At the time of my research, US News & World Report had a list of about 100 statistics programs and QS World Universities had 200. These did not even include other programs I was interested in such as … Continue reading Review of Texas A&M’s Online Statistics Masters



Assuming your YEARCUTOFF option is set to 1926, what value does this code display? DATA df; variable = '01Jan15'd; FORMAT MMDDYY10. variable; RUN; PROC PRINT DATA = df; RUN; A) 01/01/1915 B) 01/01/15 C) 01/01/2015                       Answer: C Because the date cutoff is 1926, SAS … Continue reading YEARCUTOFF

Lesson 6: how to sort your data

To sort our data, we will use the PROC SORT statement. By default, SAS will sort the last data set you created save over it (same observations, different order). Let's try sorting our  table from yesterday by the number of fatalities: /*Create table*/ DATA table; INPUT Year Country $ Fatalities Rate; DATALINES; 2015 USA 35092 11.3 2014 … Continue reading Lesson 6: how to sort your data


Lesson 5: Filtering a table

Today, you'll learn how to filter a table and save the output to a new one. /*Create table with dummy practice data*/ DATA motor_vehicle_fatalities; INPUT Year Country $ Fatalities Rate; DATALINES; 2015 USA 35092 11.3 2014 USA 32675 10.3 2013 USA 32719 10.3 2013 FRANCE 3268 5.1 ; RUN; You can filter the table using … Continue reading Lesson 5: Filtering a table


Lesson 4: date formats

Yesterday we went over how SAS can display values in different ways, so what you see in the results in now necessarily how the data is stored. Today, we'll introduce how this applies with dates. Interesting fact: SAS only has 2 data types, numeric and character. Dates are stored as numeric variables and we use formats … Continue reading Lesson 4: date formats


Lesson 3: variable formats

If informats instruct SAS how to read in variables, think of formats as instructions on how to display them. To tell SAS how to display a variable, use the FORMAT statement, followed by the variable name, and finally the format. There's many different formats available, but one of the most commonly used ones is the … Continue reading Lesson 3: variable formats


Lesson 2: variable informat

This is the 2nd e-mail of the "Ace the SAS Base Programmer Exam" training series Informats tell SAS how to read variables. Remember the table we created last week? The dollar sign after the "var1" variable is an example of an informat, it tells SAS to read in that variable as a character variable and … Continue reading Lesson 2: variable informat