R/methods_glmx.R

Defines functions set_coef.glmx

Documented in set_coef.glmx

#' @include set_coef.R
#' @rdname set_coef
#' @export
set_coef.glmx <- function(model, coefs, ...) {
    out <- model
    out$coefficients$glm <- coefs[names(out$coefficients$glm)]
    out$coefficients$extra <- coefs[names(out$coefficients$extra)]
    return(out)
}

Try the marginaleffects package in your browser

Any scripts or data that you put into this service are public.

marginaleffects documentation built on Oct. 20, 2023, 1:07 a.m.