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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online