powered by
This routine calculates the NPD estimator for *covariance* based on Qn
covNPD(data, eigenTol = 1e-06, convTol = 1e-07, psdTol = 1e-08, maxit = 1000L)
the n by p raw data matrix
tolerance in eigen system, used in finding nearest positive matrix
tolerance in cov, used in finding nearest positive matrix
tolerance in psd, used in finding nearest positive matrix
max iterations in finding nearest positive matrix
a matrix with dimension p by p, NPD estimator
# NOT RUN { covNPD(matrix(rnorm(500),100,5)) # }
Run the code above in your browser using DataLab