{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Austin Wen STAT4360 HW3

Austin Wen STAT4360 HW3 - Austin Wen STAT 4360 HW3 Due...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Austin Wen STAT 4360 HW3 Due 02/21/2011 dm 'log;clear;output;clear;' ; options ps = 50 ls = 75 pageno= 1 ; goptions reset = all border ftext =swiss gunit = cm htext = 0.6 htitle = 0.8 ; ods rtf file = "N:\4360\Assignments\Assignment\HW3.rtf" ; /* 1. Use the forlang SAS data in Problem 2 of Assignment #2. a. Using PROC UNIVARIATE, obtain a histogram for the 12th grade GPA variable. Comment on the shape of the distribution.*/ goptions reset = all border ftext =swiss gunit = cm htext = 0.6 htitle = 0.8 ; Proc Univariate data = SASdata.forlang; var GPA12th; histogram ; run ; Ans: The GPA of the 12 th graders seems normally distributed.
Image of page 1

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

View Full Document Right Arrow Icon
/* b. Plot English score (on y-axis) vs 8th grade GPA (on x-axis). Does it look like there is a positive or negative relationship between English score and 8th grade GPA? */ goptions reset = all border ftext =swiss gunit = cm htext = 0.6 htitle = 0.8 ; proc gplot data = SASdata.forlang; plot English * GPA8th; run ; quit ; Ans: There seems to have positive correlation between English and 8 th grade GPA. /* c. Plot English score versus 8th grade GPA, using whether or not the student has taken a foreign language as the plot character. Does it look like there is a relationship between English score and 8 th grade GPA? Does it look like students taking a foreign language do better on the English exam? */ goptions reset = all border ftext =swiss gunit = cm htext = 0.6 htitle = 0.8 ; proc gplot data = SASdata.forlang; plot English * GPA8th = foreign/ vaxis =axis1 haxis =axis2 grid legend =legend1; axis1
Image of page 2
label = ( a = 90 'English' ) minor = ( number = 5 ) ; axis2 label = ( 'GPA8th' ) minor = ( number = 5 ) ; symbol1 v = dot cv = red h = 0.5 ; symbol2 v = diamond cv = blue h = 0.5 ; legend1 label = ( 'Foreign Language' ) down = 1 across = 2 position = ( bottom center outside ) shape = symbol ( 0.0001 , 0.4 ); run ; Ans: Same the previous question, the English grade is positively correlated to the 8 th grade GPA. But we cannot differentiate whether the students have taken the foreign language class or not from the plot above.
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern