Solutions_to_HW_4_Problems

Solutions_to_HW_4_Problems - x12 region dens=x2/x1...

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

6.3) Adding more regressors cannot decrease the r_squared, but it does increase the complexity of the model requiring additional estimation and the potential for overfitting.

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

View Full Document

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

View Full Document
Here is some sample SAS code for 3.6: data plastic; input y x; cards; 199.0 16.0 205.0 16.0 ----data------ 246.0 40.0 ; run; proc reg data=plastic; model y=x; output out=plastic_resid residual=resid; plot r.*p.; run; proc univariate normal plot data=plastic_resid; qqplot; run; Here is some sample SAS code for 6.29 data cdi; input id county \$ state \$ x1 x2 x3 x4 x5 x6 y x7 x8 x9 x10 x11

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: x12 region; dens=x2/x1; cards;-------------------data------------------------; run; proc reg data=cdi; model y= dens x11 x7; run; proc sort data=cdi out=cdi_sort; by region; run; proc reg data=cdi_sort; model y=dens x11 x7; by region; plot r.*p.; output out= cdi_resid resdiual=resid; run; proc univariate normal plot data=cdi_resid; qqplot; by region; run; Homework 5 Solutions, Stat 4315, Summer 2008...
View Full Document

{[ snackBarMessage ]}

Page1 / 6

Solutions_to_HW_4_Problems - x12 region dens=x2/x1...

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

View Full Document
Ask a homework question - tutors are online