Description Usage Arguments Value Examples
lasso
Function that uses the LASSO shrinkage reduction method
to find meaningful predictors of an outcome vector
1 2 | lasso(Data, Predictors, Outcome, Seeds = 1, Train = F,
PropOfTrain = 0.75, Plot = F)
|
Data |
a dataframe with columns for each predictor and for the outcome variable |
Predictors |
a list of strings with predictor variables names |
Outcome |
a string with the name of an outcome variable |
Seeds |
a seed for randomly selecting some part of the data to be training data and some to be testing data. default - |
Train |
Should we split data to training and test datasets (FALSE uses all data for both) |
PropOfTrain |
How much of the data to use for training the model |
Plot |
shoud we show a plot of the parameter number and log likelihood? |
a list of estimates for the effect of the valid predictors, and a R^2 statistic for the final model
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.