- formula
an object of class "Formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted.
- data
the data frame to be modeled.
- family
a vector of character of length q specifying the distributions of the responses. Bernoulli, binomial, poisson and gaussian are allowed.
- K
number of components, default is one.
- nfolds
number of folds, default is 5.
Although nfolds can be as large as the sample size (leave-one-out CV),
it is not recommended for large datasets.
- type
loss function to use for cross-validation.
Currently six options are available depending on whether the responses are of the same distribution family.
If the responses are all bernoulli distributed, then the prediction performance may be measured
through the area under the ROC curve: type = "auc"
In any other case one can choose among the following five options ("likelihood","aic","aicc","bic","mspe").
- size
specifies the number of trials of the binomial variables included in the model. A (n*qb) matrix is expected
for qb binomial variables.
- offset
used for the poisson dependent variables.
A vector or a matrix of size: number of observations * number of Poisson dependent variables is expected.
- subset
an optional vector specifying a subset of observations to be used in the fitting process.
- na.action
a function which indicates what should happen when the data contain NAs. The default is set to the na.omit
.
- crit
a list of two elements : maxit and tol, describing respectively the maximum number of iterations and
the tolerance convergence criterion for the Fisher scoring algorithm. Default is set to 50 and 10e-6 respectively.
- method
Regularization criterion type. Object of class "method.SCGLR"
built by methodSR
for Structural Relevance.
- mc.cores
max number of cores to use when using parallelization (Not available in windows yet and strongly discouraged if in interactive mode).