Skip to content

Error in estimte_slopes when trend is a factor #305

@DominiqueMakowski

Description

@DominiqueMakowski
model <- lm(Sepal.Length ~ Species * Sepal.Width, data = iris)
modelbased::estimate_slopes(model, trend="Species", by="Sepal.Width")
#> Error in Summary.factor(structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, : 'range' not meaningful for factors

Created on 2025-01-09 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions