From the course: SAS Programming for R Users, Part 1
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Demo: Poker simulation - SAS Tutorial
From the course: SAS Programming for R Users, Part 1
Demo: Poker simulation
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Introduction to SAS and SAS Studio3m 12s
-
(Locked)
Demo: Working in SAS Studio3m 40s
-
(Locked)
Demo: Writing a program in SAS Studio5m 44s
-
(Locked)
Demo: Using tasks and snippets in SAS Studio5m 47s
-
Demo: Bayesian Logistic Regression7m 14s
-
(Locked)
Demo: Poker simulation4m 37s
-
(Locked)
Demo: Determining power using simulation3m 15s
-
(Locked)
Demo: Calling R from SAS2m 15s
-
(Locked)
SAS libraries and user-defined libraries4m 27s
-
(Locked)
SAS procedure syntax1m 24s
-
(Locked)
Getting programming help53s
-
(Locked)
Demo: Navigating the online documentation2m 49s
-
-
-