Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monogenea/36d9af360e3664695aa6bf946714f308 to your computer and use it in GitHub Desktop.
Save monogenea/36d9af360e3664695aa6bf946714f308 to your computer and use it in GitHub Desktop.
# QQ plots (drawn to the same scale!)
par(mfrow = c(1,2))
lims <- c(-3.5,3.5)
qqnorm(resid(GLM, type = "normalized"),
xlim = lims, ylim = lims,main = "GLM")
abline(0,1, col = "red", lty = 2)
qqnorm(resid(lmm6.2, type = "normalized"),
xlim = lims, ylim = lims, main = "lmm6.2")
abline(0,1, col = "red", lty = 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment