TPP: True positive proportion (TPP)

View source: R/TPP.R

TPPR 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)

TRexSelector documentation built on May 29, 2024, 2:57 a.m.