whether to adapt the sign for quadratic penalty, default to be TRUE
nfolds
number of folds used in cross validation, default to be five
cvwhich
fold assignment, start from zero, if missing do random cross validation
foldseed
the random seed for cross validation design
stratify
whether to do stratified cross validation for Logistic or Cox model, default to be TRUE
lam0
The tuning parameters for quadratic penalty. If not defined, tuned by default
bets
The candidate weight for the first network, must be between 0 and 1, default to be 0, 0.1,..., 1
intercept
whether to include intercept. Ignore for Cox regression
standardize
whether to standardize predictors
fam
family for the outcome, can be "Gaussian", "Logistic", and "Cox"
type1se
whether to use one standard error or maximum rule, default to be one standard error rule
measdev
Whether to use deviance to tune, default to be deviance. If not, use mean absolue error, area under ROC curve, or concordance index for Gaussian, Logistic, and Cox