| bivariate_statistics | R Documentation |
Functions to compute various bivariate statistics.
covariance(x, y)
means_and_covariance(x, y)
correlation_coefficient(x, y)
x |
A numeric vector. |
y |
A numeric vector. |
A numeric value or vector with the computed statistic.
Boost Documentation for more details on the mathematical background.
# Covariance
covariance(c(1, 2, 3), c(4, 5, 6))
# Means and Covariance
means_and_covariance(c(1, 2, 3), c(4, 5, 6))
# Correlation Coefficient
correlation_coefficient(c(1, 2, 3), c(4, 5, 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.