Description Usage Arguments Examples
View source: R/CorShrink2DataSlack.R
Performs a box shrinkage of correlations from a data matrix with missing data using the Fisher Z-score formulation, similar to CorShrink-sparse but slacking the box constraint using slack variables.
1 | CorShrink2DataSlack(data_with_missing, alpha = 1)
|
data_with_missing |
The samples by features data matrix. May contain NA values. |
alpha |
The tuning parameter for the L-1 shrinkage of the slack variables |
1 2 3 4 5 6 7 | data("sample_by_feature_data")
out = CorShrink2DataSlack(sample_by_feature_data, alpha = 1)
corrplot::corrplot(as.matrix(out), diag = FALSE,
col = colorRampPalette(c("blue", "white", "red"))(200),
tl.pos = "td", tl.cex = 0.4, tl.col = "black",
rect.col = "white",na.label.col = "white",
method = "color", type = "upper")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.