Description Usage Arguments Examples
View source: R/auc_functions.R
This estimator is computed by leaving out a pair of one case (Y = 1
) and
one control (Y = 0
). The learner is trained on the remaining observations
and predicted values are obtained for the left-out pair. The estimate is given by
the proportion of left-out pairs for which the case had higher predicted risk
than the control.
1 |
Y |
A numeric vector of outcomes, assume to equal |
X |
A |
learner |
A wrapper that implements the desired method for building a
prediction algorithm. See |
max_pairs |
The maximum number of pairs to leave out. |
parallel |
A boolean indicating whether prediction algorithms should be
trained in parallel. Default to |
... |
Other options (not currently used) |
1 2 3 4 5 | # simulate data
X <- data.frame(x1 = rnorm(50))
Y <- rbinom(50, 1, plogis(X$x1))
# compute lpo_auc for logistic regression
lpo <- lpo_auc(Y = Y, X = X, learner = "glm_wrapper")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.