Oh I see what you're saying. Sorry, I'm a slow study when it comes to stats. :smileyconfused: There are comments about what commands would go between graphics on/off, but I'm just not sure what they are. We are trying to assess normality based on the plot and histogram output, as well as the statistics. Here is the full code: /* STA 216 hw4 - This is a "seed" program to get you started. You will add code below to complete the program. */ /* Run the below statement to gain access to permanent SAS data sets on the R drive, in the Anderson 216 folder. Note that it creates a library name called HW4. */ libname hw4 'C:\Users\Dan\Desktop\216'; /* After submitting the above statement, we can make use of any permanent SAS data sets that are stored there, including GSS. The below code produces infromation about the data set. Note that we refer to hw4.gss. HW4 is the library name, and GSS is the data set name. */ proc contents data=hw4.gss; title 'Information about the 2010 GSS sample of data'; run; proc format; value grp 1='Normal' 2='Right' 3='Left' 4='Flat' 5='Peaked' 6='Uniform'; run; /* The following data step reads in 100 observations randomly generated from a normal, right-skewed, left-skewed, flat, highly peaked, and uniform distribution. */ data hw4.gss; infile 'C:\Users\Dan\Desktop\216\hw4.gss'; input hw4.gss group; IDno = _N_; label hw4.gss='Data Distribution' group='Distribution Type'; format group grp.; run; proc means data=hw4.gss n mean median stddev skew kurt maxdec=1 fw=5; run; proc univariate data=hw4.gss noprint; histogram sibs / normal; probplot sibs / normal (mu=8.402542 sigma=9.73912); title2 'This should look normal!'; run; proc univariate data=hw4.gss noprint; histogram age / normal; probplot age / normal (mu=8.402542 sigma=9.73912); title2 'This should look normal!'; run; proc univariate data=hw4.gss noprint; histogram sei / normal; probplot sei / normal (mu=8.402542 sigma=9.73912); title2 'This should look normal!'; run; proc univariate data=hw4.gss noprint; histogram yearsjob / normal; probplot yearsjob / normal (mu=8.402542 sigma=9.73912); title2 'This should look normal!'; run; /* Don't run the below ODS statements right away. Wait until you have written the code needed to produce the output correctly. Once you have it figured out, you will use the below code to "start recording" an RTF document that can be edited in Word. */ ods rtf style= journal2 file="C:\Users\Dan\Desktop\216\hw4output.rtf" startpage=no bodytitle; ods graphics on; /* Put your code here to create the output needed for this assignment */ /* After you have created the desired output, you "stop recording" by submitting the below statements. */ ods graphics off; ods rtf close;
... View more