Description Usage Arguments Value Examples
This function removes the covariates that are not even weakly associated with the response variable prior to penalized regression to improve the performance of the variable selection and reduce the runtime.
1 |
data |
the sample data |
thres |
either a number between 0 and 1 or an positive integer. If it is a number between 0 and 1, the function selects the variables whose correlation with the response are greater than the number; if it is an integer, the function selects the top thres variables. Default is 0.1. |
A square matrix. The ith row provides the most correlated variables with the ith variable.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.