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
.