partial_correlation_cpp | R Documentation |
Partial correlation matrix with sample / ridge / OAS covariance
partial_correlation_cpp(
X_,
method = "oas",
lambda = 0.001,
return_cov_precision = TRUE
)
X_ |
Numeric double matrix (n x p). No NAs. |
method |
One of "sample", "ridge", "oas". Default "oas" (recommended for p >> n). |
lambda |
Ridge penalty for "ridge" method (added to diagonal). Ignored otherwise. |
return_cov_precision |
If TRUE, return covariance and precision matrices. |
A list with elements: pcor
, and optionally cov
, precision
,
method
, lambda
, rho
(for OAS).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.