stat424hw5_solution

stat424hw5_solution - 1. > X =...

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

View Full Document Right Arrow Icon
1. > X = c(40,50,60,40,50,60,40,50,60) > p1 = ((X-50)/10)/sqrt(2) > p2 = (3*(((X-50)/10)^2-2/3))/sqrt(6) > X2 = rep(c(40,50,60),each=3) > s1 = ((X2-50)/10)/sqrt(2) > s2 = (3*(((X2-50)/10)^2-2/3))/sqrt(6) > cbind(rep(1,9),p1,p2,s1,s2,p1*s1,p1*s2,p2*s1,p2*s2) p1 p2 s1 s2 Four Interactoins [1,] 1 -0.7071068 0.4082483 -0.7071068 0.4082483 0.5 -0.2886751 -0.2886751 0.1666667 [2,] 1 0.0000000 -0.8164966 -0.7071068 0.4082483 0.0 0.0000000 0.5773503 -0.3333333 [3,] 1 0.7071068 0.4082483 -0.7071068 0.4082483 -0.5 0.2886751 -0.2886751 0.1666667 [4,] 1 -0.7071068 0.4082483 0.0000000 -0.8164966 0.0 0.5773503 0.0000000 -0.3333333 [5,] 1 0.0000000 -0.8164966 0.0000000 -0.8164966 0.0 0.0000000 0.0000000 0.6666667 [6,] 1 0.7071068 0.4082483 0.0000000 -0.8164966 0.0 -0.5773503 0.0000000 -0.3333333 [7,] 1 -0.7071068 0.4082483 0.7071068 0.4082483 -0.5 -0.2886751 0.2886751 0.1666667 [8,] 1 0.0000000 -0.8164966 0.7071068 0.4082483 0.0 0.0000000 -0.5773503 -0.3333333 [9,] 1 0.7071068 0.4082483 0.7071068 0.4082483 0.5 0.2886751 0.2886751 0.1666667 3. > y=c(45,45,20,50,25,37,50,20,25,15,34,55,50,45,30,45,45,23,40,35)
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 / 4

stat424hw5_solution - 1. > X =...

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