stat.modelY_classification_coef.Rd
Computes the signed maximum statistic $$W_j = \max(Z_j, \tilde{Z}_j) \cdot \mathrm{sgn}(Z_j - \tilde{Z}_j),$$ where \(Z_j\) and \(\tilde{Z}_j\) are the maximum values of \(\lambda\) at which the jth variable and its knockoff, respectively, enter the generalized linear model.
stat_modelY_classification_coef(X, Y, Yk, nlambda = 100, standardize = TRUE)
n-by-p matrix of qualitative predictors.
n-by-r matrix of original responses.
n-by-r matrix of knockoff responses.
The number of lambda values - default is 100.
Logical flag for Y variable standardization. Default is standardize=TRUE
.
A r-by-2 matrix of statistics \(Z\).
This function uses the glmnet
package to fit a generalized linear model
via penalized maximum likelihood.
The statistics \(W_j\) are constructed by taking the difference between the coefficient of the j-th responses and its knockoff. '
The optional nlambda
parameter can be used to control the granularity of the
grid of \(\lambda\)'s. The default value of nlambda
is 100
.