# HW8 - Stat 512 1 Due Nov 20th Homework#8 Dr Levine 1 For...

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

Stat 512 – 1 Homework #8 Dr. Levine Due Nov 20th 1. For this problem, the idea is to demonstrate the similarity between regression with dummy variables and ANOVA. To do this, run the following SAS code. data one; input trt response @@; cards ; 1 20 1 23 1 22 2 24 2 26 2 25 3 26 3 27 3 27 ; * Regression Parameterization #1; data two; set one; if trt = 1 then x1= 1 ; else x1= 0 ; if trt = 2 then x2= 1 ; else x2= 0 ; * Regression Parameterization #2; data three; set one; if trt = 1 then x1= 1 ; else if trt = 3 then x1=- 1 ; else x1= 0 ; if trt = 2 then x2= 1 ; else if trt = 3 then x2=- 1 ; else x2= 0 ; proc glm data =one; class trt; model response=trt / solution ; means trt; proc reg data =two; model response=x1 x2; proc reg data =three; model response=x1 x2; run ; (a) Compare the ANOVA table and parameter results from the GLM analysis and Parameterization #1. What do the coefficients associated with X 1 and X 2 (i.e. b 1 and b 2 ) estimate in terms of treatment means? What constraint system does this

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.

{[ snackBarMessage ]}

### Page1 / 2

HW8 - Stat 512 1 Due Nov 20th Homework#8 Dr Levine 1 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