Skip to content

zelig should return the model.frame #38

@izahn

Description

@izahn

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)# works

So 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions