secondDiff: Calculate Cross-Derivative and its Variability

Description Usage Arguments Value Author(s)

Description

Calculates the cross-derivative required to evaluate interactions in logistic/probit regression models.

Usage

1
secondDiff(obj, vars, data, method=c("AME", "MER"), typical = NULL)

Arguments

obj

An object of class glm that will be used to find the cross-derivative.

vars

A vector of two variables to be used in calculating the derivative.

data

A data frame.

method

Indicate whether you want to use average marginal effects (AME) or marginal effects at representative values (MER).

typical

A named vector of values at which to hold variables constant.

Value

A data frame with standardized quantitative variables

Author(s)

Dave Armstrong


davidaarmstrong/damisc_nodep documentation built on May 15, 2019, 6:25 p.m.