Get variable names of the best model with nvar variables, or defined by lowest MSE, AIC, BIC or knee-point.
Returns a vector of variable names for the best model, as defined by either the AIC, BIC, or knee-point, or alternatively the best for a given number of variables.
A model of the class mogavs.
Number of variables for the best model. Only used if method is NULL or MSE.
The used data set.
The desired metric for defining the best model. If nvar is omitted, method must be named.
The methods AIC, BIC and knee look at the whole set of tried models, whereas NULL means that the function looks for the best model with $nvar$ variables and the lowest mean square error.
Returns a character vector of the variable names of the best model.
Tommi Pajala <firstname.lastname@example.org>
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.