Skip to content

at and factors #116

Open
Open
@vincentarelbundock

Description

@vincentarelbundock

Please specify whether your issue is about:

  • a possible bug
  • a question about package functionality
  • a suggested code or documentation change, improvement to the code, or feature request

What is the proper way to specify factor values in the at list?

library(margins)
dat <- mtcars
dat$cyl <- as.factor(dat$cyl)
mod <- lm(mpg ~ cyl + hp, dat)
margins(mod, at = list(hp = 100, cyl = '6'))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions