I need help with the codes for determining sample size for independent t tests by bootstrapping. I calculated the sample size by hand and got 62. My mu1=8, mu2=15 std dev.=12, alpha=0.05 and 1-beta=0.9.
Thank you.
The general idea is shown in "Using simulation to estimate the power of a statistical test." That example uses simulation to generate the many (re)samples, but you can replace the simulation step by using the bootstrap resampling. A general discussion of bootstrapping in SAS is available at "Compute a bootstrap confidence interval in SAS".
If this is a MATCHED t-test, then you should use a permutation test, as shown in "Resampling and permutation tests in SAS".
Please see the fully worked example here:
If you have more specific issues with your PROC POWER, please post back with the code you tried and explain what issues you're having.
If you have SAS 9.4M5, you can use the new BOOTSTRAP statement in PROC TTEST:
The general idea is shown in "Using simulation to estimate the power of a statistical test." That example uses simulation to generate the many (re)samples, but you can replace the simulation step by using the bootstrap resampling. A general discussion of bootstrapping in SAS is available at "Compute a bootstrap confidence interval in SAS".
If this is a MATCHED t-test, then you should use a permutation test, as shown in "Resampling and permutation tests in SAS".
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.