Join Jordan Bakerman for an in-depth discussion in this video Demo: Determining power using simulation, part of SAS Programming for R Users, Part 1.
- [Trainer] Let's stay in IML,…and this time instead of doing a fun poker simulation…let's actually use IML to determine the power…in a multiple linear regression setting using simulation.…So in this example, I have…a multiple linear regression model with three covariates,…and I want to determine the power of the first coefficient,…after controlling for the other two.…And remember, the power is just the probability…of correctly rejecting the null hypothesis,…that that specific parameter is equal to zero.…
So enter into proc iml, we're going to do 1000 simulations.…I'll set a seed.…Each dataset will have 30 observations…and I'm going to specify the mean, correlation,…variance and vector of parameters,…as well as my residual variance here.…So assume I read an article and I wanted…to specify these parameters explicitly.…Next I'm going to use functions very similar to R,…like diag, square root, and so on.…
Here we use the star operator to do…matrix multiplication IML,…which is a little bit different coming from R.…
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.