User Tools

Site Tools


principal_component_analysis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
principal_component_analysis [2019/11/15 22:16]
hkimscil [e.g. saq]
principal_component_analysis [2019/11/16 14:36] (current)
hkimscil [e.g. saq]
Line 178: Line 178:
               stat_cry afraid_spss sd_excite nmare_pearson du_stat lexp_comp comp_hate good_math               stat_cry afraid_spss sd_excite nmare_pearson du_stat lexp_comp comp_hate good_math
 stat_cry ​        ​1.000 ​     -0.099 ​   -0.337 ​        ​0.436 ​  ​0.402 ​    ​0.217 ​    ​0.305 ​    0.331 stat_cry ​        ​1.000 ​     -0.099 ​   -0.337 ​        ​0.436 ​  ​0.402 ​    ​0.217 ​    ​0.305 ​    0.331
-afraid_spss ​    ​-0.099 ​      ​1.000 ​    ​0.318 ​       -0.112 ​ -0.119 ​   -0.074 ​   -0.159 ​   -0.050+afraid_spss ​    ​-0.099 ​      ​1.000 ​    ​0.318 ​       -0.112 ​ -0.119 ​   -0.074 ​   -0.159 ​   -0.050s
 sd_excite ​      ​-0.337 ​      ​0.318 ​    ​1.000 ​       -0.380 ​ -0.310 ​   -0.227 ​   -0.382 ​   -0.259 sd_excite ​      ​-0.337 ​      ​0.318 ​    ​1.000 ​       -0.380 ​ -0.310 ​   -0.227 ​   -0.382 ​   -0.259
 nmare_pearson ​   0.436      -0.112 ​   -0.380 ​        ​1.000 ​  ​0.401 ​    ​0.278 ​    ​0.409 ​    0.349 nmare_pearson ​   0.436      -0.112 ​   -0.380 ​        ​1.000 ​  ​0.401 ​    ​0.278 ​    ​0.409 ​    0.349
Line 188: Line 188:
 </​code>​ </​code>​
  
 +<​code>​
 +install.packages("​Hmisc"​)
 +library(Hmisc)
 +saq8.rcorr <- rcorr(as.matrix(saq8))
 + 
 +print(saq8.rcorr$r,​ digits = 3)
 +</​code>​
  
  
principal_component_analysis.txt · Last modified: 2019/11/16 14:36 by hkimscil