typical: Superseded by datagrid(...)

View source: R/datagrid.R

typicalR Documentation

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_integer = function(x) round(mean(x, na.rm = TRUE)),
  FUN_other = function(x) mean(x, na.rm = TRUE)
)

Arguments

...

named arguments with vectors of values or functions for user-specified variables.

  • Functions are applied to the variable in the model dataset or newdata, and must return a vector of the appropriate type.

  • Character vectors are automatically transformed to factors if necessary. +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_integer

the function to be applied to integer variables.

FUN_other

the function to be applied to other variable types.


marginaleffects documentation built on Nov. 24, 2022, 1:06 a.m.