9 - input satisfaction age severity anxiety; run; proc...

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

View Full Document Right Arrow Icon
data a1; input cost lesson; cards; 77 16 70 14 85 22 50 10 62 14 70 17 55 10 63 13 88 19 57 12 81 18 51 11 ; proc print data=a1; run; proc reg data=a1; model cost=lesson/r; output out=diag r=resid; run; title1 'residuals plot'; symbol1 v=circle i=rl; axis1 label=('lesson'); axis2 label=(angle=90 'residual'); proc gplot data=diag; plot resid*lesson / haxis=axis1 vaxis=axis2 vref=0; run; data diag; set diag; absr=abs(resid); title1 ''; proc gplot data=diag; plot absr*lesson; run; proc reg data=diag; model absr=lesson; output out=weights p=shat; data weights; set weights; wt=1/(shat*shat); run; proc print data=weights; run; proc reg data=weights; model cost=lesson; weight wt; run;
Background image of page 1

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

View Full DocumentRight Arrow Icon
data a2; infile 'C:\Documents and Settings\Administrator\My Documents\Lectures\2009- 1st\Statistics\SAS Files\Data files\CH06PR15.DAT';
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: input satisfaction age severity anxiety; run; proc print data=a2; run; title1 'Ridge Trace'; title2 ''; symbol1 v = A i = none c = black; symbol2 v = S i = none c = black; symbol3 v = X i = none c = black; proc reg data = a2 outvif outest = patient ridge = .000, .005, .01, .02, .03, .04, .05; model satisfaction=age severity anxiety; plot / ridgeplot nomodel nostat; run; title1 ''; proc gplot data = patient; plot (age severity anxiety)* _RIDGE_ / overlay; where _TYPE_ = 'RIDGEVIF'; run; proc print data=patient; var _RIDGE_ age severity anxiety; where _TYPE_='RIDGEVIF'; run; proc print data=patient; var _RIDGE_ _RMSE_ Intercept age severity anxiety; 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 University-West Lafayette.

Page1 / 2

9 - input satisfaction age severity anxiety; run; proc...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online