R/methods_geepack.R

Defines functions get_prediction_jacobian_spec.geeglm get_model_matrix.geeglm

Documented in get_model_matrix.geeglm

#' @rdname get_model_matrix
#' @export
get_model_matrix.geeglm <- function(model, newdata, mfx = NULL) {
    # geepack does not define predict.geeglm(); prediction inherits the GLM
    # implementation and therefore uses the same model-matrix construction.
    get_model_matrix.glm(model, newdata, mfx = mfx)
}


#' @noRd
#' @export
get_prediction_jacobian_spec.geeglm <- function(model, type, ...) {
    prediction_jacobian_spec_glm_family(model, "geeglm", type)
}

Try the marginaleffects package in your browser

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

marginaleffects documentation built on Sept. 3, 2026, 9:08 a.m.