Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
312 Statistical Programming in SAS
Display 8.48 (continued)
call streaminit(27549);
do i=1 to 4000;
do ii = 1 to 31;
ipick = int(31*RAND('uniform')+1);
bage(ii) = age(ipick);
end;
boot_mean = mean(of bage1-bage31); * calculate the test statistic;
keep boot_mean;
output boot_data;
end;
datalines;
44 40 44 42 38 47 40 43 44 38 44 45 45 47 54 49 51 51 48 49 57 54 52 50
51 54 51 57 49 48 52
run;
* select 5
th
and 95
th
percentiles from bootstrap distribution of the mean;
proc tabulate data=boot_data;
var boot_mean;
table boot_mean, P5 P95;
run;
ods graphics on;
proc sgplot data=boot_data; * histogram of bootstrap means (not shown); ...
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.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047