# 6 - proc univariate data=full; title1 'qqplot for...

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

data cs; infile 'C:\Documents and Settings\Administrator\My Documents\Lectures\2009- 1st\Statistics\SAS Files\Data files\csdata.dat'; input id gpa hsm hss hse satm satv gender; data cs; set cs; sat = satm + satv; hs = hsm + hss + hse; genderw = gender - 1; run; *Problem 1; proc reg data = cs; model gpa = genderw hsm hss hse satm satv; run; *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; proc gplot data=full; title1 'Residual Plot for Full Model'; plot resid*predict / vref = 0; plot resid*hsm / vref = 0; plot resid*hse / vref = 0; run; symbol1 v = circle i = rl;

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: proc univariate data=full; title1 'qqplot for residuals'; var resid; qqplot / normal (L = 1 mu = est sigma = est); run; symbol1 v = circle i = none; proc univariate data=full; run; * Problem 1; data tire; infile 'C:\Documents and Settings\Administrator\My Documents\Lectures\2009-1st\Statistics\SAS Files\Data files\ch11pr15.dat'; input cost speed make; speedmake = speed * make; proc print data=tire; title1 'Cost vs Speed'; symbol1 v = * i = rl c = black; symbol2 v = # i = rl c = red; proc gplot data=tire; plot cost*speed=make; run; * Problems 2; proc reg data=tire; model cost = make speed speedmake; sameline: test make, speedmake; run;...
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 - proc univariate data=full; title1 'qqplot for...

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

View Full Document
Ask a homework question - tutors are online