Join Jordan Bakerman for an in-depth discussion in this video Demo: Labels, formats, and informats, part of SAS Programming for R Users, Part 1.
- [Narrator] So at this point you might be asking yourself…do I really need to know the number of days since…January 1st, 1960 to actually work with SAS date formats?…Well, the answer of course is no,…that would be way too much of a pain.…We use what are called informats,…meaning your data's already in the appropriate format.…So here I'm creating a data set called employees…and I only have two variables,…name, which is character, and birthday.…
And you'll notice here, I'm applying an informat,…so I'm using the colon to tell SAS…the data I'm reading in is already in the specified format.…It's already in month, day, year, eight format.…And if you go down to the data lines you'll see,…I have my name, in this case Jill,…and then a date, in this case January 1st, 1960,…and Jack, 5-11-1988.…So that way I don't have to actually…calculate the number of days.…
And of course I'm reading in more than…one observation per line so remember…your trailing addAt symbol.…And I'm going to read in this data set…and immediately print it with the print procedure.…
Note: You can visit the SAS site to obtain a copy of the software, and use the company's online data sets to do the course exercises.
- SAS University Edition
- Working in SAS Studio
- Using tasks and snippets in SAS Studio
- Determining power using simulation
- SAS procedure syntax
- Creating datasets manually in the DATA step
- Importing raw data files
- Creating new variables and conditional processing
- Match-merging data sets
Skill Level Beginner
Descriptive Healthcare Analytics in Rwith Monika Wahi4h 15m Advanced
1. Introduction and Working in SAS
2. Importing and Reporting Data
3. Creating New Variables, Functions, and Data Tables
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.