* Read in the data; PROC IMPORT DATAFILE = 'C:\Documents and Settings\richc\My Documents\STA580F08\TABLE612.xls' OUT = AIDS DBMS = EXCEL REPLACE; SHEET = Sheet1; GETNAMES = YES; RUN; * Start writing to PDF; ODS PDF FILE = 'C:\Documents and Settings\richc\My Documents\STA580F08\TABLE612.pdf'; * The following code will carry out inferential tasks concerning * \mu and \sigma. ; * Chapter 6 tasks: Obtain 95% confidence intervals for \mu and * \sigma assuming normality. [The lower and upper limits of the * latter confidence interval are just the square roots of the lower * and upper limits of the confidence interval for \sigma^2.] ; * Chapter 7 tasks: Test H_0: \mu = \mu_0 vs. H_1: \mu \ne \mu_0, * assuming normality. In this example, \mu_0 = 5. ; proc ttest data = AIDS h0=5 alpha = 0.05; var Latency; run; * The following code will carry out inferential tasks concerning * p. ; * Chapter 6 tasks: Obtain approximate (large-sample) and exact * (small-sample) 95% confidence intervals for p. ; * Chapter 7 tasks: Test H_0: p = p_0 vs. H_1: p \ne p_0, * assuming a large sample. In this example, p_0 = 0.40. ; proc freq data=AIDS; tables Within5 / binomial(p=.40) alpha=0.05; run; * Stop writing to PDF; ODS PDF CLOSE; RUN;