







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Professor: Bailer; Class: Statistical Programming; Subject: Statistics; University: Miami University-Oxford; Term: Fall (First Sem) 2004;
Typology: Assignments
1 / 13
This page cannot be seen from the preview
Don't miss anything!








ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\hw\hw5-prob1a.rtf’; proc gplot data=class.meat; title h= 1.5 ‘Plot of log(Bacterial count) vs. packaging condition'; title2 h= 1 '[boxplot is plotted for each condition]'; symbol1 interpol=box /* plots +/- 2 SD from the mean at each conc / value=dot; plot logcountcondition; run ; ODS RTF CLOSE;
ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\hw\hw5-prob1b.rtf’; proc gplot data=class.meat; title h= 1.5 ‘Plot of log(Bacterial count) vs. packaging condition'; title2 h= 1 '[mean +/- 2SD is plotted for each condition]'; symbol1 interpol=STD2T /* plots +/- 2 SD from the mean at each conc / / T= add top and bottom to each 2 SD diff / value=dot; plot logcountcondition;
data null; c = 1; n = 10; level = 100 * (1 - 2 * (1 - probt( c, n-1))); put all; call symput('level',put(level,best12.)); run;
data null; c = 1; n = 3; level = 100 * (1 - 2 * (1 - probt( c, n-1))); put all; call symput('level',put(level,best12.)); run; c=1 n=3 level=57.735026919 ERROR=0 N= ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\hw\hw5-fig1c.rtf'; goptions reset=global gunit=pct border cback=white colors=(black blue green red) ftext=swiss ftitle=swissb htitle= 5 htext= 3.5 ; title1 'Average log(Bacteria count) by Packaging Condition'; axis1 label=('log(count)' minor=(number= 1 ); axis2 label=('Packaging' j=r 'Condition'); pattern1 color=cyan; proc gchart data=class.meat; hbar condition / type=mean sumvar=logcount /* freqlabel='Number in Group' / / meanlabel='Mean Number Young' */ errorbar=bars clm= &level raxis=axis maxis=axis noframe coutline=black; run ; ODS RTF CLOSE;
ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\hw\hw5-fig1c-2.rtf'; goptions reset=global gunit=pct border cback=white colors=(black blue green red) ftext=swiss ftitle=swissb htitle= 5 htext= 3.5 ; title1 'Average log(Bacteria count) by Packaging Condition'; axis1 label=('log(count)' minor=(number= 1 ); axis2 label=('Packaging' j=r 'Condition'); pattern1 color=cyan;
Data new_nitro; set class.nitrofen; Sqrt_total = sqrt(total); run; ODS RTF file='D:\baileraj\Classes\Fall 2003\sta402\hw\hw5-prob2.rtf’; proc gplot data=new_nitro ; title h= 1.4 'Plot of the number of C. dubia young versus Nitrofen Concentration'; title2 h= 1 '[Regression line for quadratic model displayed]'; symbol1 interpol=rq /* r=regression, l=linear (q,c also possible), clm=conf. int. mean (cli option), 95= conf. level / value=diamond height= 3 cv=red ci=blue co=green width= 2 ; plot sqrt_totalconc / hminor= 1 overlay regeqn; /* adds regression eqn to bottom left of plot */ run ; ODS RTF CLOSE;
stotal = sqrt(total); c_conc = conc – 157; * center the concentration; c_conc2 = c_conc*2; / proc means; var conc; run; */ ods html; ods graphics on; proc reg; model stotal = c_conc c_conc2; run; ods graphics off; ods html close;