-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
zelig does not return the model frame, which causes plot to fail:
m0 <- lm(mpg ~ hp*am, data=mtcars)
m1 <- zelig(mpg ~ hp*am, model="ls", data=mtcars, cite=FALSE)
plot(m0) #diagnostic plots
plot(m1) #does not work: Error in eval(predvars, data, env) : invalid 'envir' argument
m1$result$model <- m0$model
plot(m1)# worksSo plot appears to fail because the model component of the lm results list is not available. This should be added so that plot and other methods that depend on the model component of the list will work correctly.
This is with Zelig version 4.1-2
Metadata
Metadata
Assignees
Labels
No labels