Guest User

Untitled

a guest
Mar 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. ch8dat=data.frame(group=c(rep('BD',5),rep('Poli',5),rep('Admin',5)),
  2. case=seq(1,15,1),
  3. read1=c(7,8,5,6,7,4,6,5,6,4,3,5,4,7,6),
  4. dance1=c(10,9,10,10,8,4,4,5,6,5,1,3,2,1,3),
  5. tv1=c(6,5,5,6,7,4,5,5,6,6,1,1,2,2,3),
  6. ski1=c(5,7,8,8,9,4,3,6,7,5,2,5,5,4,3))
  7.  
  8. GLM
  9. read1 dance1 tv1 ski1 BY group
  10. /METHOD=SSTYPE(3)
  11. /CRITERIA=ALPHA(0.05)
  12. /INTERCEPT=INCLUDE
  13. /DESIGN=group
  14. /MMATRIX="sed. vs. act." read1 -1 dance1 1 tv1 -1 ski1 -1
  15. /LMATRIX="bd vs. other" group 2 -1 -1.
  16.  
  17. mod=lm((cbind(ch8dat$read1,ch8dat$dance1,ch8dat$tv1,ch8dat$ski1)%*%matrix(data=c(1,-1,1,-1),nrow=4))~
  18. as.numeric(ch8dat$group)+c(rep(2,5),rep(-1,10)))
  19. summary(manova(mod),test='Wilks')
Add Comment
Please, Sign In to add comment