Learn R Programming

marginaleffects (version 0.3.3)

counterfactual: Superseded by datagrid(..., grid.type = "counterfactual")

Description

Superseded by datagrid(..., grid.type = "counterfactual")

Usage

counterfactual(..., model = NULL, newdata = NULL)

Arguments

...

named arguments with vectors of values for user-specified variables. The output will include all combinations of these variables (see Examples below.)

model

Model object

newdata

data.frame (one and only one of the model and newdata arguments