HW8-prob1-SAScode

HW8-prob1-SAScode - proc reg; where id ne 7; where id ne...

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

View Full Document Right Arrow Icon
options ps=66 ls=70; data in; infile '/u11/faculty/tch/hw8anyproblems'; input id sex age x1 x2 x3 y; run; title 'Initial Analysis'; proc reg; model y = age sex x1 x2 x3 / scorr2; run; title 'Residual plots and residual analysis'; proc reg lineprinter; model y = age sex x1 x2 x3 / p r influence; plot residual.* (age sex x1 x2 x3 predicted.) / hplots=2 vplots=2; run; **SECOND HALF OF ASSIGNMENT; title 'Analysis without id 7 and 23 & Collinearity Analysis';
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: proc reg; where id ne 7; where id ne 23; model y = age sex x1 x2 x3 / vif tol; run; title 'Final Model - Dropping id 7 and 23 & dropping sex and x3'; proc reg; where id ne 7; where id ne 23; model y = age sex x1 x2 x3 / scorr2; run; proc reg; where id ne 7; where id ne 23; model y = age x1 x2 / scorr2; run; ods rtf file = "HW8-prob1.rtf";...
View Full Document

Ask a homework question - tutors are online