File: methods_glmx.R

package info (click to toggle)
r-cran-marginaleffects 0.32.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,784 kB
  • sloc: sh: 13; makefile: 8
file content (9 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#' @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)
}