You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,8 @@ The various mathematical statistics are listed below:
97
97
|`iqrOutliers()`| outlier detection based on IQR method (box plot whiskers), robust for skewed data |
98
98
|`geometricMean()`| geometric mean |
99
99
|`harmonicMean()`| harmonic mean |
100
-
|`correlation()`| Pearson’s or Spearman’s rank correlation coefficient for two inputs |
100
+
|`correlation()`| Pearson’s, Spearman’s rank, or Kendall tau correlation coefficient for two inputs |
101
+
|`kendallTau()`| Kendall tau-b rank correlation coefficient for ordinal association with tie handling |
101
102
|`covariance()`| the sample covariance of two inputs |
102
103
|`linearRegression()`| return the slope and intercept of simple linear regression parameters estimated using ordinary least squares (supports `proportional: true` for regression through the origin) |
Return the Pearson’s correlation coefficient for two inputs. Pearson’s correlation coefficient r takes values between -1 and +1. It measures the strength and direction of the linear relationship, where +1 means very strong, positive linear relationship, -1 very strong, negative linear relationship, and 0 no linear relationship.
614
615
615
-
Use `$method = ‘ranked’` for Spearman’s rank correlation, which measures monotonic relationships (not just linear). Spearman’s correlation is computed by applying Pearson’s formula to the ranks of the data.
616
+
Use `$method = 'ranked'` for Spearman’s rank correlation, which measures monotonic relationships (not just linear). Spearman’s correlation is computed by applying Pearson’s formula to the ranks of the data.
617
+
618
+
Use `$method = 'kendall'` for Kendall tau-b correlation, which measures ordinal association by comparing concordant and discordant pairs. Kendall tau-b is often useful for ordinal data, small samples, and datasets with ties.
0 commit comments