Join Jordan Bakerman for an in-depth discussion in this video Enhanced reporting: Labels and formats, part of SAS Programming for R Users, Part 1.
- [Instructor] In this section, I want to apply labels…and formats to my datasets and results…so I can alter the presentation of the data table or report.…So for example, maybe I want to change the label…of FN and LN to First Name and Last Name.…Maybe I want to change the observation display…of the job variable from SR and SM to sales Rep…and Sales Manager.…And finally we'll look at how to apply a format…to a variable like Salary so I can tack…on a dollar sign.…
We'll look at SAS date formats as well.…So how can I display a date in a logical format…so I can actually read it?…So the Label statement is used to change the display…of the column variables.…So in the Label statement, I'll specify…my variable name.…In this case, FN.…And I'll set it equal to a new display.…In this case, First Name.…Same as LN equal to Last Name.…And again, this only changes the display of the columns.…
The variable names are kept the same as FN and LN.…And in the print procedure, when you're using…the label statement, you have to use the Label Option.…
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.