TPP {TRexSelector} | R Documentation |
True positive proportion (TPP)
Description
Computes the TPP based on the estimated and the true regression coefficient vectors.
Usage
TPP(beta_hat, beta, eps = .Machine$double.eps)
Arguments
beta_hat |
Estimated regression coefficient vector. |
beta |
True regression coefficient vector. |
eps |
Numerical zero. |
Value
True positive proportion (TPP).
Examples
data("Gauss_data")
X <- Gauss_data$X
y <- c(Gauss_data$y)
beta <- Gauss_data$beta
set.seed(1234)
res <- trex(X, y)
beta_hat <- res$selected_var
TPP(beta_hat = beta_hat, beta = beta)
[Package TRexSelector version 1.0.0 Index]