[R-sig-eco] plot confidence interval binomial glm

Drew Tyre @tyre2 @end|ng |rom un|@edu
Sat May 29 17:09:22 CEST 2021


Hi Fernando

I don't know how to do it with sjPlot, but you can make the lines smoother by adding more levels to log dose before predicting. I have an example of how to plot confidence intervals for a binomial glm at
https://drewtyre.rbind.io/classes/NRES803/Week_5/lab_5/

hth
-- 
Drew Tyre

he/his/him

Although I may be sending this outside my normal office hours, I do not expect a reply outside of yours.

-----Original Message-----
From: R-sig-ecology <r-sig-ecology-bounces using r-project.org> On Behalf Of Luis Fernando García
Sent: Saturday, May 29, 2021 3:09 AM
To: r-sig-ecology using r-project.org
Subject: [R-sig-eco] plot confidence interval binomial glm

Non-NU Email

Dear all,

I am using the  sj Plot package, but I have had some issues when plotting.
The main question I have is that when plotting a binomial GLM, lines are not smooth, but they look broken (see https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_presentation_d_1Pqm6BcJXdSQ6U1zmv5FV7gBcn1afHHv7rlQHe6j59-5Fc_edit-3Fusp-3Dsharing&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=aLEaSryyUcERVqcKVZl7lQ&m=H-Mc4mGVIv4MwcxRFn0F4LwmO0M9tepJIjIuw5NzYYI&s=er25j6gAkt1fiSUTsEme5vXRqql9ThTSxbRrUbSvAB4&e= ), I wanted to know if there is anyway to increase resolution? In addition, is it possible to add to this plot the individual observations (points)?

I am sorry if this question is too obvious but I am just trying this package. In addition, do you know another package for plotting GLM confidence intervals?

Best regards!

####CODE
library(sjPlot:)
library(ggplot2)
model2 = glm(y~log(dose)+Prey,quasibinomial(link=probit))
plot_model(model3, type = "pred", terms = c("ld","Prey"))

	[[alternative HTML version deleted]]

_______________________________________________
R-sig-ecology mailing list
R-sig-ecology using r-project.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Decology&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=aLEaSryyUcERVqcKVZl7lQ&m=H-Mc4mGVIv4MwcxRFn0F4LwmO0M9tepJIjIuw5NzYYI&s=OXHvxwPKn4qya7EHbvBDWJ27I9A1iyaQHC5RezQkVM8&e= 



More information about the R-sig-ecology mailing list