Re: [R] How can we get a predicted value that are used to plot the figure using a plot_model function of sjPlot?

2020-09-28 Thread Paul Bivand
If you read ?plot_model() there is a description of type="pred" that suggests fuller details are found under ?ggeffect() from the ggeffects package. This in turn suggests that if you use 'ggpredict()' with arguments that replicate those you used in plot_model(), you get a data.frame with the

Re: [R] How can we get a predicted value that are used to plot the figure using a plot_model function of sjPlot?

2020-09-19 Thread Bert Gunter
As no one has responded. Typically, > ?predict so > predict(fit) should give you fitted values for the class of fit, whatever it is. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in

[R] How can we get a predicted value that are used to plot the figure using a plot_model function of sjPlot?

2020-09-19 Thread Peter Wagey
Hi R users, I was trying to create a figure of three-way-interactions. There is a function "plot-model" but I was wondering whether we can extract the predicted value before we run the "plot-model" function. For example: in this example, plot_model(fit, type = "pred", terms = c("c12hour",