Skip to content

Instantly share code, notes, and snippets.

@drsimonj
Last active June 6, 2017 01:46
Show Gist options
  • Select an option

  • Save drsimonj/5b2cfc428fce350676db5dc77c059052 to your computer and use it in GitHub Desktop.

Select an option

Save drsimonj/5b2cfc428fce350676db5dc77c059052 to your computer and use it in GitHub Desktop.
Snippets of code that demonstrate issues with model and predict functions, serving as a motivator for the twidlr package
## predict for Analysic of Variance (aov) searches for object in global environment
d <- datasets::mtcars
fit <- aov(hp ~ am * cyl, d)
predict(fit)
d <- NULL
predict(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment