TPP | R Documentation |
Computes the TPP based on the estimated and the true regression coefficient vectors.
TPP(beta_hat, beta, eps = .Machine$double.eps)
beta_hat |
Estimated regression coefficient vector. |
beta |
True regression coefficient vector. |
eps |
Numerical zero. |
True positive proportion (TPP).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.