stan-dev / projpred

Projection predictive variable selection
https://mc-stan.org/projpred/
Other
110 stars 26 forks source link

Reference model performance results and refactoring/renaming in `summary.vsel()` and `plot.vsel()` #471

Closed fweber144 closed 8 months ago

fweber144 commented 8 months ago

This makes print.vselsummary() (and hence also print.vsel()) print the reference model's performance evaluation results as well (not just those of the submodels). Correspondingly, a new helper function performances() is added which allows to access the reference model's (as well as the submodels') performance evaluation results in a programmatic way.

Related to this is some refactoring/renaming in summary.vsel() and plot.vsel() performed by this PR (see the commit messages and the newly added NEWS.md entries for details). In particular, this PR removes the cv_suffix of the column names and also the length(stats) == 1 case to make it easier for users to deal with the summary.vsel() output table (the one with the submodel performance results) programmatically. (As additional reasons, the print() output shows the cv_method anyway and the columns of the output table have been a bit confusing in the length(stats) == 1 case.) As indicated by the new NEWS.md entries, these refactorings/renamings should not be a breaking change for users.