Skip to content

Cross-derivative #1565

@vincentarelbundock

Description

@vincentarelbundock

Ai & Norton call this the "interaction effect":

library(marginaleffects)
mod <- glm(am ~ mpg * wt, data = mtcars, family = binomial)
slopes(mod,
  variables = "mpg",
  newdata = datagrid(wt = c(mean(mtcars$wt), mean(mtcars$wt) + 0.001)),
  hypothesis = "(b2 - b1) / 0.001 = 0")

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions