1.The code for the randomization test in thischapter has an inherent inefficiency.
The program performs the followingcheck:
if type='O' then do;
However, type='O' only in the first line, but every line is checked. Modify
this program to make it more efficient.Hint: You can use multiple INPUT
statements in a DATAstep.
2.A simple difference statistic is used in the two-group randomization test.Does it
matter if the t-statisticis used? Conduct a randomization test using the
t-statistic.
3.Perform a randomization test on the packaging and log-bacterial growth data.
2
In
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.