Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object 'fstatistic' not found when model contains intercept only #865

Closed
stefvanbuuren opened this issue May 29, 2020 · 2 comments
Closed

Comments

@stefvanbuuren
Copy link

In trying to solve amices/mice#237 I found that broom 0.7.0.9000 produces an expected result when the model contains only an intercept.

library(broom)

# normal operation
fit1 <- lm(mpg ~ disp, data = mtcars)
glance(fit1)

# intercept only throws error: Error in eval_tidy(xs[[j]], mask) : object 'fstatistic' not found
fit0 <- lm(mpg ~ 1, data = mtcars)
glance(fit0)

Is this normal behaviour?

@simonpcouch
Copy link
Collaborator

Thanks for the issue! This shouldn't be the case, no. Will get started on a fix and update tests to check for this in the future.

@github-actions
Copy link

github-actions bot commented Mar 8, 2021

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants