Skip to main content
. 2015 Mar 3;10(3):e0119075. doi: 10.1371/journal.pone.0119075

Fig 1. The process of variable selection using the elastic net method.

Fig 1

Step 1 shows the generation of train and test sets for each cross-validation loops. We used jackknifing technique to assign one participant to the test set and the rest to the training set. In Step 2, the optimized model is estimated for the training set, using elastic net method. This model has minimized squared error on each cross-validation loop. This model is then tested on the test set in Step 3. After the whole process is repeated over all the participants to avoid the bias, we selected the variables which were consistently selected on all the cross-validation loops. There were 6 variables which were selected in this way.