Dear list members,
this is probably a query I could have forwarded privately to the author of the two commands under consideration, coefplot and grstyle (ssc describe coefplot ssc describe grstyle), but I guess others may be able to contribute and benefit from reading perhaps.
One the one side, when using coefplot, a combination of the options transform(), if() and copts(recast()) (or cirecast()) can be used to identify confidence intervals that are too large by some chosen measure, truncate them and place an arrow at the truncation to flag it for the reader. An example is here.
On the other side, when introducing grstyle, Jann(2018) warns that some commands may override and disrupt the pre-specified style settings. The full quote is:
I was wondering if anyone knows if this can also be the case with coefplot when specifying recast(pcarrow) to place arrowheads on truncated CIs.
If so, I would also like to know if, rather than setting schemes (which I am not familiar with) it is possible to solve the issue by using the more intuitive grstyle set. In particular, I'm having problems with plot color settings.
this is probably a query I could have forwarded privately to the author of the two commands under consideration, coefplot and grstyle (ssc describe coefplot ssc describe grstyle), but I guess others may be able to contribute and benefit from reading perhaps.
One the one side, when using coefplot, a combination of the options transform(), if() and copts(recast()) (or cirecast()) can be used to identify confidence intervals that are too large by some chosen measure, truncate them and place an arrow at the truncation to flag it for the reader. An example is here.
On the other side, when introducing grstyle, Jann(2018) warns that some commands may override and disrupt the pre-specified style settings. The full quote is:
Another reason why your style settings may not have an effect is that some of
the higher-level graph commands (that is, commands other than graph that internally
call graph) apply explicit style settings to certain elements and, hence, override the
defaults provided by grstyle. An example is marginsplot, which internally applies
option pstyle(p1) (or pstyle(p2), pstyle(p3), etc., depending on context) to the
confidence intervals so that point estimates and confidence intervals are displayed using
the same style. This makes it difficult to modify point estimates and confidence intervals
individually. For example, if you apply option recastci(rarea) to marginsplot so that
the confidence intervals are displayed as areas instead of capped spikes, using grstyle
to set the attributes of elements p1area and p1arealine will have no effect unless you
also add option ci1opts(astyle(p1area)) to marginsplot. If your graph contains
multiple series of estimates and you want all confidence areas to look the same, it is
probably easiest to set the attributes of the ci elements (see help scheme ci plots)
and then add option ciopts(astyle(ci)) to marginsplot.
the higher-level graph commands (that is, commands other than graph that internally
call graph) apply explicit style settings to certain elements and, hence, override the
defaults provided by grstyle. An example is marginsplot, which internally applies
option pstyle(p1) (or pstyle(p2), pstyle(p3), etc., depending on context) to the
confidence intervals so that point estimates and confidence intervals are displayed using
the same style. This makes it difficult to modify point estimates and confidence intervals
individually. For example, if you apply option recastci(rarea) to marginsplot so that
the confidence intervals are displayed as areas instead of capped spikes, using grstyle
to set the attributes of elements p1area and p1arealine will have no effect unless you
also add option ci1opts(astyle(p1area)) to marginsplot. If your graph contains
multiple series of estimates and you want all confidence areas to look the same, it is
probably easiest to set the attributes of the ci elements (see help scheme ci plots)
and then add option ciopts(astyle(ci)) to marginsplot.
If so, I would also like to know if, rather than setting schemes (which I am not familiar with) it is possible to solve the issue by using the more intuitive grstyle set. In particular, I'm having problems with plot color settings.
Comment