This function computes the nearest positive definite of a real symmetric matrix.
help("make.positive.definite") from package
Original version by Korbinian Strimmer
Juliane Schaefer, Rainer Opgen-Rhein, Verena Zuber, A. Pedro Duarte Silva and Korbinian Strimmer. (2011). corpcor: Efficient Estimation of Covariance and (Partial) Correlation. R package version 1.6.0. https://CRAN.R-project.org/package=corpcor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.