feature.test(x, y, B = 100, type.measure = "deviance", s = "lambda.min", keeplambda = FALSE, olsestimates = TRUE, penalty.factor = rep(1, nvars), alpha = 1, control = list(trace = FALSE, maxcores = 24), ...)cv.glmnet
for more informationcoef.glmnet for more informationTRUE then the estimated lambda from cross
validation from the original dataset is kept and used for evaluation in the
subsequent randomization datasets. This reduces computation time
substantially as it is not necessary to perform cross validation for each
randomization. If set to a value then that value is used for the value of
lambda. Defaults to FALSETRUE. If set to FALSE then the coefficients from
the lasso is used as test statistics.glmnet for more information.glmnet for more
information.trace is a logical and if set to TRUE then the function
produces more output. maxcores sets the maximum number of cores to
use with the parallel packageglmnetglmnet sorted from (numerically) highest to
lowest based on their ols test statistic.glmnet sorted from
(numerically) highest to lowest based on their absolute lasso coefficients.glmnet
# Simulate some data
x <- matrix(rnorm(30*100), nrow=30)
y <- rnorm(30, mean=1*x[,1])
# Make inference for features
## Not run: feature.test(x, y)
Run the code above in your browser using DataLab