[R] Back transform confidence intervals sjplot (plot_model)

Ebert,Timothy Aaron tebert @end|ng |rom u||@edu
Thu Jun 23 16:00:29 CEST 2022

Can one back transform confidence intervals: yes, just like one back transforms other values.
Should one back transform confidence intervals: probably not. Even if you applied the log transformation because it fixed problems in the model residuals, it is possible (likely?) that the reason that transformation worked was because the model was more appropriate for describing the relationship between the variables and that relationship was not a straight line. A log transform is one way to model a curved line.
   People like seeing the original units. I might plot on log scale where I can include the original units. I might make two plots, one on log scale with stats  and one on raw data for the stake holders. I might plot log transformed data and then annotate the axis to include back transformed values. I might plot the raw data and put in the equations for transformed data with a clear note that the analysis was on log transformed data. If none of this works I would try a nonlinear model.

   Maybe consider what you hope the audience will get out of the graphic. Is the audience trying to understand mechanisms and the strength of relationships or is the audience trying to relate your results to their situation. 

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Luis Fernando García
Sent: Wednesday, June 22, 2022 1:26 PM
To: r-help mailing list <r-help using r-project.org>
Subject: [R] Back transform confidence intervals sjplot (plot_model)

[External Email]

Hello all!

I am having two isues with the sjplot package, When dealing with my data I have the following issue:

Original data:


m11 <- geeglm(
formula = log(Timmo)~ presa+picaduras,
data = dat2,
id = IDN,
corstr = "exchangeable"
plot_model(m11, type = "pred", terms = c("picaduras", "presa"))

When plotting the data I get this error: # Model has log-transformed response. Back-transforming predictions to original response scale.
Standard errors are still on the log-scale

My question is, is it possible to back transform confidence intervals for using the plot_model argument? An additional question I have is how to define manually the color scale and order the factors using sjplot.

Thanks for sharing this package, it is awesome!

Many thanks

        [[alternative HTML version deleted]]

R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp&d=DwICAg&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=Ji4JGk_lU6Z1gVOt1aab4aejwbLV6FLxEQcFF48wWlQnbzZ8y9SZxAnP7oxFHD2S&s=XGkUlsnTIyfXSpbRSTFMspRkle8X0rvFnx0BZ7AN5OI&e=
PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwICAg&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=Ji4JGk_lU6Z1gVOt1aab4aejwbLV6FLxEQcFF48wWlQnbzZ8y9SZxAnP7oxFHD2S&s=Cx3FIscbDuqRLhHEzEtXW7kiAVhp_ESUqXiXZC2_jJY&e=
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list