R/methods_Rchoice.R

Defines functions set_coef.hetprob

Documented in set_coef.hetprob

#' @rdname set_coef
#' @export
set_coef.hetprob <- function(model, coefs, ...) {
    model[["estimate"]][names(coefs)] <- coefs
    model
}

#' @rdname set_coef
#' @export
set_coef.ivpml <- set_coef.hetprob

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.