ipa_table.CV.SuperLearner: Table of cross-validated IPA measures from CV.SuperLearner...

View source: R/ipa_table.CV.SuperLearner.R

ipa_table.CV.SuperLearnerR Documentation

Table of cross-validated IPA measures from CV.SuperLearner result

Description

Calculates cross-validated index of prediction accuracy for each learner in the CV.SuperLearner. Also calculates standard-error, confidence interval and p-value.

Usage

## S3 method for class 'CV.SuperLearner'
ipa_table(
  x,
  y = x$Y,
  sort = TRUE,
  null_hypothesis = NULL,
  two_tailed = FALSE,
  lower.tail = TRUE,
  ...
)

Arguments

x

CV.SuperLearner object

y

Outcome vector, if not already added to CV.SL object.

sort

Sort table by order of score.

null_hypothesis

Not implemented yet

two_tailed

Not implemented yet

lower.tail

Not implemented yet

...

Any additional unused arguments, due to the ipa_table generic.

Value

Dataframe table with IPA and std dev.

Examples

library(SuperLearner)
library(ck37r)

data(Boston, package = "MASS")

set.seed(1)
y = as.numeric(Boston$medv > 23)
cvsl = CV.SuperLearner(Y = y,
                       X = subset(Boston, select = -medv),
                       family = binomial(),
                       cvControl = list(V = 2, stratifyCV = TRUE),
                       SL.library = c("SL.mean", "SL.glm"))
ipa_table(cvsl, y = y)




ck37/ckTools documentation built on April 29, 2023, 11:47 p.m.