Function to calculate stability of variables' association with an outcome for a given model over a number of bootstrap repeats
A list for each model selected. Each list contains a dataframe of variable stabilities, a numeric permutation threshold, and a dataframe of coefficients for both bootstrap and permutation.
A dataframe containing an outcome variable to be permuted.
The outcome as a string (i.e. "y").
The number of bootstrap samples. Default is "auto" which selects number based on dataframe size.
The number of times to be permuted per repeat. Default is "auto" which selects number based on dataframe size.
The number of times to repeat each set of permutations. Default is 20.
The models to select for stabilising. Default is elastic net (models = c("enet")), other available models include "lasso", "mbic", "mcp".
The type of model, either "linear" or "logistic"
The quantile of null stabilities to use as a threshold.
Normalise numeric variables (TRUE/FALSE)
Create dummy variables for factors/characters (TRUE/FALSE)
Impute missing data (TRUE/FALSE)