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
Chapter 8: Formatting Variables, Recoding Variables, and Writing Programs 295
Display 8.32 (continued)
* generate N1 observations ~ N(mu_1, sig_1^2);
do ix = 1 to N1;
group = 1;
Y = RAND('normal',mu_1,sig_1);
output;
end;
* generate N2 observations ~ N(mu_2, sig_2^2);
do ix = 1 to N2;
group = 2;
Y = RAND('normal',mu_2,sig_2);
output;
end;
end; * of the do-loop over simulated experiments;
run;
/* calculate the test statistic */
ods rtf file="C:\Users\baileraj.IT\Desktop\Display-8-33.rtf";
ods trace on/listing;
proc ttest data=simulate_2group_t;
by iexpt;
class group;
var Y;
run;
ods trace off;
ods rtf close;
The output ob
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