Description Usage Arguments Value Author(s) Examples
glmsel
is used to fit generalised linear models with optionally performing variable selection using stepwise regression, lasso or elastic net methods.
1 2 |
formula |
an object of class "formula"; a symbolic description of the model to be fitted. |
data |
an optional data frame, list or environment containg the variables in the model. If not specified, the variables are taken from the current environment. |
varsel |
a method of variable selection to be used. The default is |
criterion |
when |
direction |
the mode of stepwise search, can be one of |
indices |
vector of |
train |
if |
family |
a description of the error distribution and link function to be used in the model. This can be a character string naming a family function. |
enet.alpha |
The elastic net mixing parameter, with 0=a= 1. The penalty is defined as (1-a)/2||β||\_{2}^2+a||β||_1
|
A "glmsel" object is returned, for which print, plot and summary methods can be used.
Michal Knut 1105406k@student.gla.ac.uk.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.