# 6_ori - plot resid*hsm / vref = 0; plot resid*hse / vref =...

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

*Homework #6; data cs; infile 'H:\System\Desktop\csdata.dat'; input id gpa hsm hss hse satm satv gender; *proc print data=cs; data cs; set cs; sat = satm + satv; hs = hsm + hss + hse; genderw = gender - 1; *Problem 1; proc reg data = cs; model gpa = genderw hsm hss hse satm satv; *Problem 2; proc reg data=cs; model gpa=hsm hss hse satm satv gender / selection= rsquare cp b best=1; run; * Problem 3; symbol1 v=circle i = none; proc reg data=cs; model gpa=hsm hse / r p; output out = full r=resid p = predict; * Note: either do the automatic plot here or with gplot as below. Don't need both; title1 'Automatic residual plot'; plot r.*p.; symbol1 v = circle i = none; * Note: don't need to do this one if automatic plot done above; proc gplot data=full; title1 'Residual Plot for Full Model'; plot resid*predict / vref = 0;

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot resid*hsm / vref = 0; plot resid*hse / vref = 0; run; symbol1 v = circle i = rl; title1 'GPA vs X variables'; proc gplot data=cs; plot gpa*hsm; plot gpa*hse; run; symbol1 v = circle i = none; proc univariate data=full; * Note: only need one of these; title1 'Qqplot for residuals'; var resid; qqplot / normal (L = 1 mu = est sigma = est); run; * Problem 4; data tire; infile 'H:\System\Desktop\ch11pr15.dat'; input cost speed make; speedmake = speed * make; proc print data=tire; title1 'Scatterplot cost vs speed for two makes'; symbol1 v = A i = rl c = black; symbol2 v = B i = rl c = red; proc gplot data=tire; plot cost*speed=make; run; * Problems 5&6; proc reg data=tire; model cost = make speed speedmake/clb; sameline: test make, speedmake; run; quit;...
View Full Document

## This note was uploaded on 08/28/2011 for the course STAT 00000 taught by Professor - during the Spring '11 term at Purdue.

### Page1 / 2

6_ori - plot resid*hsm / vref = 0; plot resid*hse / vref =...

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

View Full Document
Ask a homework question - tutors are online