- x
- input matrix of dimension n x p (sparse matrices not yet implemented). 
Each row is an observation, each column corresponds to a covariate. The xval.oem() function
is optimized for n >> p settings and may be very slow when p > n, so please use other packages
such as - glmnet,- ncvreg,- grpreg, or- gglassowhen p > n or p approx n.
 
- y
- numeric response vector of length - nobs = nrow(x).
 
- nfolds
- integer number of cross validation folds. 3 is the minimum number allowed. defaults to 10 
- foldid
- an optional vector of values between 1 and - nfoldspecifying which fold each observation belongs to.
 
- type.measure
- measure to evaluate for cross-validation. The default is - type.measure = "deviance", 
which uses squared-error for gaussian models (a.k.a- type.measure = "mse"there), deviance for logistic
regression.- type.measure = "class"applies to- binomialonly.- type.measure = "auc"is for two-class logistic 
regression only.- type.measure="mse"or- type.measure="mae"(mean absolute error) can be used by all models;
they measure the deviation from the fitted mean to the response.
 
- ncores
- Integer scalar that specifies the number of threads to be used 
- family
- "gaussian"for least squares problems,- "binomial"for binary response (not implemented yet).
 
- penalty
- Specification of penalty type. Choices include: - 
- "elastic.net"- elastic net penalty, extra parameters:- "alpha"
 
- "lasso"- lasso penalty
 
- "ols"- ordinary least squares
 
- "mcp"- minimax concave penalty, extra parameters:- "gamma"
 
- "scad"- smoothly clipped absolute deviation, extra parameters:- "gamma"
 
- "mcp.net"- minimax concave penalty + l2 penalty, extra parameters:- "gamma",- "alpha"
 
- "scad.net"- smoothly clipped absolute deviation + l2 penalty, extra parameters:- "gamma",- "alpha"
 
- "grp.lasso"- group lasso penalty
 
- "grp.lasso.net"- group lasso penalty + l2 penalty, extra parameters:- "alpha"
 
- "grp.mcp"- group minimax concave penalty, extra parameters:- "gamma"
 
- "grp.scad"- group smoothly clipped absolute deviation, extra parameters:- "gamma"
 
- "grp.mcp.net"- group minimax concave penalty + l2 penalty, extra parameters:- "gamma",- "alpha"
 
- "grp.scad.net"- group smoothly clipped absolute deviation + l2 penalty, extra parameters:- "gamma",- "alpha"
 
- "sparse.grp.lasso"- sparse group lasso penalty (group lasso + lasso), extra parameters:- "tau"
 
 - Careful consideration is required for the group lasso, group MCP, and group SCAD penalties. Groups as specified by the - groupsargument 
should be chosen in a sensible manner.
 
- weights
- observation weights. defaults to 1 for each observation (setting weight vector to 
length 0 will default all weights to 1) 
- lambda
- A user supplied lambda sequence. By default, the program computes
its own lambda sequence based on - nlambdaand- lambda.min.ratio. Supplying
a value of lambda overrides this.
 
- nlambda
- The number of lambda values - default is 100. 
- lambda.min.ratio
- Smallest value for lambda, as a fraction of - lambda.max, the (data derived) entry
value (i.e. the smallest value for which all coefficients are zero). The default
depends on the sample size nobs relative to the number of variables nvars. If- nobs > nvars, the default is 0.0001, close to zero.
 
- alpha
- mixing value for - elastic.net,- mcp.net,- scad.net,- grp.mcp.net,- grp.scad.net. 
penalty applied is (1 - alpha) * (ridge penalty) + alpha * (lasso/mcp/mcp/grp.lasso penalty)
 
- gamma
- tuning parameter for SCAD and MCP penalties. must be >= 1 
- tau
- mixing value for - sparse.grp.lasso. penalty applied is (1 - tau) * (group lasso penalty) + tau * (lasso penalty)
 
- groups
- A vector of describing the grouping of the coefficients. See the example below. All unpenalized variables
should be put in group 0 
- penalty.factor
- Separate penalty factors can be applied to each coefficient. 
This is a number that multiplies lambda to allow differential shrinkage. Can be 0 for some variables, 
which implies no shrinkage, and that variable is always included in the model. Default is 1 for all 
variables. 
- group.weights
- penalty factors applied to each group for the group lasso. Similar to - penalty.factor, 
this is a number that multiplies lambda to allow differential shrinkage. Can be 0 for some groups, 
which implies no shrinkage, and that group is always included in the model. Default is sqrt(group size) for all
groups.
 
- standardize
- Logical flag for - xvariable standardization, prior to fitting the models. 
The coefficients are always returned on the original scale. Default is- standardize = TRUE. If 
variables are in the same units already, you might not wish to standardize.
 
- intercept
- Should intercept(s) be fitted (- default = TRUE) or set to zero (- FALSE)
 
- maxit
- integer. Maximum number of OEM iterations 
- tol
- convergence tolerance for OEM iterations 
- irls.maxit
- integer. Maximum number of IRLS iterations 
- irls.tol
- convergence tolerance for IRLS iterations. Only used if - family != "gaussian"
 
- compute.loss
- should the loss be computed for each estimated tuning parameter? Defaults to - FALSE. Setting
to- TRUEwill dramatically increase computational time