We have a function called "verifyCovarianceMatrix" in the front-end that does some sanity checking on covariance matrices. What types of error checking are needed for correlation matrices? This assignment is for Ross, because we weren't using our bug report interface. "verifyCovarianceMatrix" does the following:
- matrix is square?
- matrix has NA values?
- matrix is symmetric?
- matrix is positive-definite?
- matrix is square?
- matrix has NA values?
- matrix is symmetric?
- matrix is positive-definite?
#1
- every element on matrix diagonal is 1.0
- no matrix elements are outside of the range [-1.0, 1.0]
Log in or register to post comments
#2
Log in or register to post comments
#3
Log in or register to post comments
#4
Log in or register to post comments
#5
Log in or register to post comments