I am modelling the probability of species presence based on environmental variables. My dataset contains both real presence data and pseudo-absence (randomly generated absence) data. My environmental variable include distance to lotic water, distance to lentic water, percent impervious surface, and distance to roads. I have fit the following model.
model <- glmer(presence ~ scale(lotic_distance) + scale(lentic_distance) +
scale(percent_impervious) + scale(road_distance) + (1 | Municipality),
data = df,
family = binomial(link = "logit"))
What I want to plot is "what is the probability of occurrence of this species for each variable?" I also want to plot confidence intervals.
I found this post: Confidence intervals for predictions from logistic regression but it only deals with one x variable. Any guidance would be appreciated.
