Skip to content

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

@stefvanbuuren

Description

@stefvanbuuren

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions