Generate initial Markov chain state with Lasso.
lasso_deltas(
X,
y,
lambda = NULL,
verbose = FALSE,
alpha = 1,
rank_fn = order_plain,
k = ncol(X)
)A matrix - the initial state of Markov Chain for HTLR model fitting.
Design matrix of traning data; rows should be for the cases, and columns for different features.
Vector of class labels in training or test data set. Must be coded as non-negative integers, e.g., 1,2,...,C for C classes.
A user supplied lambda sequence for glmnet cross-validation.
NULL by default, and it will be generated by glmnet.
The elasticnet mixing parameter for glmnet.
Jerome Friedman, Trevor Hastie, Robert Tibshirani (2010). Regularization Paths for Generalized Linear Models via Coordinate Descent. Journal of Statistical Software, 33(1), 1-22.
bcbcsf_deltas