Description Usage Arguments Value Examples
This function uses LASSO to select predictors in order to run linear regression to predict LDL for individuals. Outputs a vector of predicted values of LDL corresponding on input There are no checks for NAs or anythingelse and thus this isa development level function.
1 |
data |
Data.frame or matrix where the first column is what you want to predict, and remaining columns are what you want to consider as possibly covariates. Any factors MUST be set as factors before running. No character vectors allowed. |
A vector of length equal to number of rows of input data with predicted values of LDL
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.