User Tools

Site Tools


partial_and_semipartial_correlation

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
partial_and_semipartial_correlation [2019/05/23 10:24] – [Partial cor] hkimscilpartial_and_semipartial_correlation [2019/05/23 10:27] – [regression gpa against sat] hkimscil
Line 48: Line 48:
 cors <- cor(tests) cors <- cor(tests)
 round(cors,3) round(cors,3)
- 
 </code> </code>
 +
 +<code>       sat  clep   gpa
 +sat  1.000 0.875 0.718
 +clep 0.875 1.000 0.876
 +gpa  0.718 0.876 1.000
 +> </code>
  
 ===== regression gpa against sat ===== ===== regression gpa against sat =====
Line 80: Line 85:
 {{lm.gpa.sat.png?400}} {{lm.gpa.sat.png?400}}
 Note that .718 = correlation coefficient of sat and gpa.  Note that .718 = correlation coefficient of sat and gpa. 
 +<code>> sqrt(0.5156)
 +[1] 0.7180529</code>
 +
  
 <code>> cor.gpa.sat <- as.data.frame(cbind(sat, gpa, lm.gpa.sat$fitted.values, lm.gpa.sat$residuals)) <code>> cor.gpa.sat <- as.data.frame(cbind(sat, gpa, lm.gpa.sat$fitted.values, lm.gpa.sat$residuals))
partial_and_semipartial_correlation.txt · Last modified: 2024/06/12 08:01 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki