View source: R/confints2signifind.R
| confints2signifind | R Documentation |
This function converts the matrix returned by confints.bootpls
into a logical indicator of significance. A predictor is marked as
significant when the selected confidence interval lies entirely on one side
of the reference value.
confints2signifind(ic_bootobject, typeIC, threshold = 0)
ic_bootobject |
a matrix returned by |
typeIC |
type of confidence interval to use. Defaults to |
threshold |
reference value to test against. Defaults to |
Named logical vector. TRUE means that the selected
confidence interval excludes threshold; FALSE means that it
contains threshold; NA means that the interval could not be
evaluated.
Frédéric Bertrand
frederic.bertrand@lecnam.net
https://fbertran.github.io/homepage/
confints.bootpls and signpred.
data(Cornell)
set.seed(250)
modpls <- plsR(Y ~ ., data = Cornell, 3)
Cornell.bootYT <- bootpls(modpls, typeboot = "fmodel_np", R = 250, verbose = FALSE)
temp.ci <- confints.bootpls(Cornell.bootYT, indices = 2:8, typeBCa = FALSE)
confints2signifind(temp.ci)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.