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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 541 views
  • 4 likes
  • 4 in conversation