get_p_classification {ISS} | R Documentation |
get_p_classification
Description
Calculate the p-value in Definition 21 of Müller et al. (2023).
Usage
get_p_classification(X, y, x0, tau)
Arguments
X |
a numeric matrix specifying the covariates. |
y |
a numeric vector with |
x0 |
a numeric vector specifying the point of interest, such that
|
tau |
a single numeric value in [0,1) specifying the threshold of interest. |
Value
A single numeric value in (0, 1].
References
Müller MM, Reeve HWJ, Cannings TI, Samworth RJ (2023). “Isotonic subgroup selection.” arXiv preprint arXiv:2305.04852.
Examples
set.seed(123)
n <- 100
d <- 2
X <- matrix(runif(d * n), ncol = d)
eta <- function(x) sum(x)
X_eta <- apply(X, MARGIN = 1, FUN = function(x) 1 / (1 + exp(-eta(x))))
y <- as.numeric(runif(n) < X_eta)
get_p_classification(X, y, x0 = c(1, 1), tau = 0.6)
get_p_classification(X, y, x0 = c(1, 1), tau = 0.9)
[Package ISS version 1.0.0 Index]