The COV function computes a sample variance-covariance matrix for data. The function supports two different methods for dealing with missing values in the data.