8 - cd=finv(0.5, p, n-p); hat=2*p/n; dff=2*sqrt(p/n);...

This preview shows page 1. Sign up to view the full content.

data a1; infile 'C:\Documents and Settings\Administrator\My Documents\Lectures\2009- 1st\Statistics\SAS Files\Data files\ch06pr18.txt'; input Rental_rate age tax rate footage; seq=_n_; proc print; run; proc reg data=a1; model Rental_rate=age tax rate footage/r p influence; output out=test rstudent=rs student=stud h=H cookd=cookd; run; proc print data=test; var rs stud h cookd; run; data a2; alpha=0.01; tc=tinv(1-alpha/(2*n),n-p-1); hat=2*5/81; n=81; p=5; sdr=tinv(1-alpha/(2*n), n-p-1);
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cd=finv(0.5, p, n-p); hat=2*p/n; dff=2*sqrt(p/n); dfb=2/sqrt(n); run; proc print; run; data a3; age=10; tax=12; rate=0.5; footage=350000; output; data a4; set a1 a3; proc print data=a4; run; proc reg data=a4; model Rental_rate=age tax rate footage/r p influence; output out=hw8d r=resid p=pred rstudent=rs student=stud h=H cookd=cookd; run; proc print; run; data a5; set a1; set test; run; proc gplot data=a5; plot cookd*seq; 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.

Ask a homework question - tutors are online