Learn R Programming

marginaleffects (version 0.3.3)

typical: Superseded by datagrid(...)

Description

Superseded by datagrid(...)

Usage

typical(
  ...,
  model = NULL,
  newdata = NULL,
  FUN.character = Mode,
  FUN.factor = Mode,
  FUN.logical = Mode,
  FUN.numeric = function(x) mean(x, na.rm = TRUE),
  FUN.other = function(x) mean(x, na.rm = TRUE)
)

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

FUN.character

the function to be applied to character variables.

FUN.factor

the function to be applied to factor variables.

FUN.logical

the function to be applied to factor variables.

FUN.numeric

the function to be applied to numeric variables.

FUN.other

the function to be applied to other variable types.