jtools
jtools copied to clipboard
Backtransform Outcome in Effect_Plot
I am working with the attached dataset: Test.csv
I am running the following model:
library(ggeffects)
library(jtools)
df<-read.csv("Test.csv",header=T,row.names=1)
model<-lm(log(Molecule) ~ Volume + Pred1 + Pred2 + Pred3, data=df)
I tried plotting the results using effect_plot:
effect_plot(model,pred="Volume",interval=TRUE,plot.points = TRUE,data=df)
However, I can't seem to get the plot to display the native backtransformed y-axis, only the logged values. Any way that can be done?
I know the ggeffects package can display the backtransformed y-axis but it seems to have issues plotting the points as your package can (see issue here: https://github.com/strengejacke/ggeffects/issues/522)