| covp | R Documentation |
Compute the covariance between x and y.
covp(x, y)
x |
a numeric vector. |
y |
a numeric vector. |
Compute the covariance between x and y using n (instead of n-1 as in cov) in the denominator.
If the length of x and y are different, the elements of the shortest one will be recycled as necessary.
An object with the covariance between x and y.
cov
x<- rnorm(100)
y<- rnorm(100)
covp(x, y)
cov(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.