SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
ALEXMANI
Calcite | Level 5

how to use monte carlo method to decide which CI (between satterthwaite and T-confidence interval) is better based on n and Var given to us?

3 REPLIES 3
Ksharp
Super User

Calling @Rick_SAS 

Rick_SAS
SAS Super FREQ

Satterthwaite contributed to CIs for two-sample t tests, but he also contributed to CIs for a variance. So the first step is to define your problem. For example,

 

  • What test are you running?
  • What SAS procedure would you use to compute the statistics on one set of data? Figure out the syntax.
  • The CI is for what statistic? 
  • The data are simulated from what distribution?

If your problem is a two-sample t test, you will also need to define the difference between the means of the two samples.

 

For an introduction to Monte Carlo simulation in SAS, see "Using simulation to estimate the power of a statistical test," which shows how to simulate data for a two-sample t test.  The article contains links to other articles that discuss how to perform simulation studies efficiently. They are worth reading if you are learning about how to run Monte Carlo simulations in SAS.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 672 views
  • 4 likes
  • 4 in conversation