Mixed deltas plot (rewritten)#511
Conversation
this was proposed by @avehtari in stan-dev#496, but has been rewritten by @fweber144
|
With this PR branch, I get an error when using (e.g. using the example in the vignette) |
|
The github PR review system is broken and if I try to make comments specific to certain lines my browser freezes (tested both Chrome and Firefox): methods.R lines 1110-1125: |
Without that change to the table, how do you get the values for the intervals corresponding to the plot? |
<stan-dev#511 (comment)> (the check is not necessary in the first place because `stats_bs_init` is a `data.frame`)
Thanks; fixed in 5638c09. |
Thanks; fixed in ee57c83. |
From the |
(a merge operation was necessary instead of simply omitting the error; see discussion at stan-dev#511)
That was a bit too hasty. I didn't realize that a merge operation was necessary (this was the reason why I added the error back then). Fixed now in b86caaa. |
|
With student case study https://users.aalto.fi/~ave/casestudies/VariableSelection/student.html, this worked in my PR but with this PR gives an error |
Thanks; fixed in 69b349b. |
I get the same error with your PR. I guess you ran the code from your PR when commit f132e70 was not yet included in Lines 441 to 443 in 0362770 sqrt_cut0() was added so that cutting off negative variances can be done at other places in the same manner).
Now the question is how we should fix that (on |
ok |
Fixed in 4daed93 (and merged |
|
I just tested plotting with all different stats using Portuguese student data (for continuos data) and Diabetes for binary data, and all did work well |
in the context of argument `deltas`, for consistency with the docs (and to differentiate this from the original response scale)
Thanks. I finished the open to-do items from above and will merge now. |
of `summary.vsel()` from #511

This is a rewritten version of the mixed deltas plot (#508, originally proposed in #496) that comes with less changes compared to
masterand should be less error-prone.@avehtari, could you check if the plots created by this version are ok for you? Especially the axis labels and the plot subtitle would need to be checked (there are a few changes in the labels/subtitle compared to #508).
Here, the new column behavior of the
performances()table (which is essentially thesummary.vsel()table) implemented in #508 is not included. I would suggest to create a separate PR for that new column behavior if it is still desired (personally, I would prefer not to change it because it has been this way for a long time, already before I started working on projpred).This PR is not completely ready to be merged. There are a few things I still need to do:
deltasin the whole codebase, especially to ensure that the docs and the vignettes are updated appropriately.NEWS.mdentry.I would tackle these if @avehtari confirms that the general implementation is ok. If we go with this version, #508 would have to be closed (not merged).