Join Jordan Bakerman for an in-depth discussion in this video Demo: Poker simulation, part of SAS Programming for R Users, Part 1.
- [Instructor] Next I want to do a poker simulation,…so a fun simulation in IML,…the Interactive Matrix Language.…And I think a lot of people coming from R to SAS…actually don't know that we have our own matrix language.…So once we enter into the IML procedure,…everything is a matrix and we can do any kind…of matrix algebra manipulation and simulation…that we would in R as well.…So for this example, I'm going to be doing a…poker simulation, and I'm going to be playing…the game Texas Hold 'em.…So if you're not familiar with this game,…let me just set the stage for you.…
So typically there are nine players at…a single table, and each player is dealt two…cards face-down.…And then the dealer deals five cards face-up.…And then the players go ahead and try to make…their best five-card hand, and there's also a…series of betting to try and move people out…of the play and so on.…The first thing I want to do in this demonstration…is actually create a deck of cards.…So here I'm entering into the IML procedure.…I'm going to play this game 10 times, so I just want to…
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.