View source: R/weighted_significance.R
| weighted_significance | R Documentation |
This function combines the empirical distribution of selected component
counts with a matrix of bootstrap significance indicators. Rows in
matind are matched to component counts using names such as
"YT1", "YT2", and so on.
weighted_significance(cv_counts, matind)
cv_counts |
named vector or table of cross-validation component counts. |
matind |
matrix-like object whose rows are named by model/component
labels and whose columns are predictors. Values are typically logical
significance indicators returned by |
Named numeric vector containing weighted significance scores for
each predictor. When no row of matind matches cv_counts, the
function returns a named vector of NA_real_ values.
Frédéric Bertrand
frederic.bertrand@lecnam.net
https://fbertran.github.io/homepage/
confints2signifind, cvtable, and
signpred.
cv_counts <- c("1" = 87, "2" = 13)
matind <- rbind(
YT1 = c(X1 = TRUE, X2 = TRUE),
YT2 = c(X1 = TRUE, X2 = FALSE)
)
weighted_significance(cv_counts, matind)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.