# Ex3 - dm'log;clear;output;clear optionsps=50ls=75pageno=1*...

This preview shows pages 1–3. Sign up to view the full content.

dm 'log;clear;output;clear;';  options ps=50 ls=75 pageno=1;  *Graphics options  put these at the TOP of every program!!!*;  goptions reset=all border ftext=swiss gunit=cm htext=0.6 htitle=0.8;  *3-1;  *The following title will appear as the first line of every page in the output window;  title1 'Problem 3-1, STAT 6360';  *a. Draw the following histogram to show the distribution of sugar with a normal curve. ;  title2 'Histogram: sugar';  proc univariate data=sasdata.Adjcereal;  var sugar;  histogram / normal cfill=red midpoints=0 to 0.6 by 0.05 ;  run;  *Graphics options  put these at the TOP of every program!!!*;  goptions reset=all border ftext=swiss gunit=cm htext=0.6 htitle=0.8;  *b. Make the following QQ-plot with the estimated reference line.;  title2 'QQplot: sugar';  proc univariate data=sasdata.Adjcereal;  var sugar;  qqplot sugar / normal(mu=est sigma=est) square;   run;  *Graphics options  put these at the TOP of every program!!!*;  goptions reset=all border ftext=swiss gunit=cm htext=0.6 htitle=0.8;  *c. Draw another QQ-plot for sugar and make sure the reference go through the  origin and have a slope of 1;  *Standardize the variable sugar;  proc standard data=sasdata.Adjcereal out=out_set1 mean=0 std=1;  var sugar;   run;

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
title2 'QQplot: standarized sugar';  proc univariate data=out_set1;  var sugar;  qqplot sugar / normal(mu=0 sigma=1) square;  run;  *d. Draw a scatter plot with sugar vs fat;  title2 'Scatter plot: sugar vs fat';  goptions reset=all border ftext=swiss gunit=cm htext=0.4 htitle=0.5;
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at UGA.

### Page1 / 6

Ex3 - dm'log;clear;output;clear optionsps=50ls=75pageno=1*...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online