margins icon indicating copy to clipboard operation
margins copied to clipboard

Feature request: coef method for margins objects

Open tzoltak opened this issue 5 years ago • 0 comments

[x] a suggested code or documentation change, improvement to the code, or feature request

If a simple coef() method for margins objects would be added to the package, it will enable for example easy computation of AMEs on multiply imputed datasets using package mitools. I think it may look as simply as:

#' @export
coef.margins <- function(object, ...) {
  summary(object)$AME
}

tzoltak avatar Dec 22 '19 18:12 tzoltak