You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: allow to plot OR or RR instead of logOR and logRR with plot_forest #7771
With statsmodels.stats.meta_analysiseffectsize_2proportions, we get the log odds ratio or log risk ratio when use the corresponding statistic option, and we can get the OR and RR, as well as their corresponding CI, by using exp np.exp(res_eyding.summary_frame())
But we cannot plot the OR or RR with plot_forest.
Just changing the plot would only be one line (or 3 total)
(I just saw that we don't specify a plot title. That seems to be currently up to the user.
AFAICS, the plot doesn't specify which effect size is used.)
changed the title [-]allow to plot OR or RR instead of logOR and logRR with `plot_forest`[/-][+]ENH: allow to plot OR or RR instead of logOR and logRR with `plot_forest`[/+]on Oct 30, 2021
Activity
josef-pkt commentedon Oct 1, 2021
good idea
Just changing the plot would only be one line (or 3 total)
(I just saw that we don't specify a plot title. That seems to be currently up to the user.
AFAICS, the plot doesn't specify which effect size is used.)
josef-pkt commentedon Oct 1, 2021
What would be a good name for an option in
plot_forest?use_exp=Falseanti-log or reverse log would be descriptive names
Stats uses
eformto convert log-or and similar#2235 my "eform" function only uses generic names like
transformanother missing:
the plot_forest doesn't have
alpha=0.05, use_t=Noneto forward options to summary_frame methodsbwiecko commentedon Oct 1, 2021
use_exp=Falsemakes a lot of sensefor the plot title, xlabels etc, it's no big deal we can always use
plt.gca().set_title('blabla')josef-pkt commentedon Oct 1, 2021
question while I'm checking the unit tests:
is
res.use_tTrue for the combine results with log-or and similar proportion effect sizes?I get a warning in the unit test, that
use_t=Trueneeds nobsjosef-pkt commentedon Oct 1, 2021
PR is #7772
josef-pkt commentedon Oct 1, 2021
In the unit test case the "or" plot doesn't look so good, because there are one or two large outliers.
But it looks correct visually.
[-]allow to plot OR or RR instead of logOR and logRR with `plot_forest`[/-][+]ENH: allow to plot OR or RR instead of logOR and logRR with `plot_forest`[/+]