ProjectMOSAIC / mosaicModel

Utilities for creating, visualizing, and predicting with models
Other
2 stars 1 forks source link

mod_effect and splines #5

Closed dtkaplan closed 7 years ago

dtkaplan commented 7 years ago

mod_effect() doesn't seem to work with splines, e.g.

m <- lm(mpg ~ ns(hp,2)*am, data = mtcars)
mod_effect(m, ~ hp)
dtkaplan commented 7 years ago

Fooled myself. It seems to work.