cov_mx: Covariance matrix

Description Usage Arguments Value Examples

View source: R/cov_mx.R

Description

'cov_mx' function calculates the covariance matrix of the two variables and automatically deals with the missing value

Usage

1
cov_mx(x)

Arguments

x

a matrix that contains one or more than one random variable

Value

z matrix that contains the covariance between random variables in the input matrix

Examples

1
cov_mx(matrix(c(1, 2, NA, 4, 5, 6, 7, 8), 4))

UBC-MDS/CorrR documentation built on May 30, 2019, 2:04 a.m.