Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. a=c(107.4,105.0,106.0,105.4,106.5,107.1,103.8,105.1,105.8,108.3,
  2. 105.0,106.3,102.5,101.3,104.9,105.6,100.8,105.8,103.2,113.0,
  3. 106.0,102.5,105.0,100.1,102.6,107.9,101.3,101.9,102.1,105.8,
  4. 105.4,101.3,100.1,104.9,104.2,105.8,101.8,103.5,102.4,102.9,
  5. 106.5,104.9,102.6,104.2,106.0,106.6,98.3,101.1,105.6, 103.9,
  6. 107.1,105.6,107.9,105.8,106.6,107.9,104.6,103.8,106.2,101.5,
  7. 103.8,100.8,101.3,101.8,98.3 ,104.6,103.4,100.8,NA ,103.2,
  8. 105.1,105.8,101.9,103.5,101.1,103.8,100.8,103.5,103.7,98.5,
  9. 105.8,103.2,102.1,102.4,105.6,106.2,NA ,103.7,105.1,99.5,
  10. 108.3,113.0,105.8,102.9,103.9,101.5,103.2,98.5, 99.5, 107.5)
  11. b=matrix(a,nrow=10)
  12.  
  13. b[7,9]=mean(b[7,],na.rm=T)
  14.  
  15. b[9,7]=b[7,9]
  16.  
  17. corrmat=cor(b)
  18.  
  19. dimnames(corrmat)=list(c("kuzma","ingram","hart","ball","pope","lebron","mcgee","stephenson","chandler","rondo"))
  20.  
  21. eigen(corrmat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement