Learn R Programming

margins (version 0.2.0)

margins-package: Marginal effects for model objects

Description

This package is an R port of Stata's margins command, implemented as an S3 generic margins() for model objects, like those of class “lm” and “glm”. The function also provides a low-level function, marginal_effects, to estimate those quantities and return a data.frame of unit-specific effects; and a low-level function, prediction, that provides a consistent data.frame interface to predict.

Arguments

See Also

margins, marginal_effects, prediction