Description Usage Arguments Value Author(s) See Also Examples
Function that enables to obtain the best variables for more than one size of subset. Returns a table with the chosen covariates to be introduced into the models and their information criteria. Additionally, an asterisk is shown next to the size of subset which minimizes the information criterion.
1 2  qselection(x, y, qvector, criterion = "deviance", method = "lm",
family = "gaussian", nfolds = 5, cluster = TRUE, ncores = NULL)

x 
A data frame containing all the covariates. 
y 
A vector with the response values. 
qvector 
A vector with more than one variablesubset size to be selected. 
criterion 
The information criterion to be used.
Default is the deviance. Other functions provided
are the coefficient of determination ( 
method 
A character string specifying which regression method is used,
i.e., linear models ( 
family 
A description of the error distribution and link function to be
used in the model: ( 
nfolds 
Number of folds for the crossvalidation procedure, for

cluster 
A logical value. If 
ncores 
An integer value specifying the number of cores to be used
in the parallelized procedure. If 
q 
A vector of subset sizes. 
criterion 
A vector of Information criterion values. 
selection 
Selected variables for each size. 
Marta Sestelo, Nora M. Villanueva and Javier RocaPardinas.
1 2 3 4 5 6 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.