Skip to content

butcher method for models fitted with brglm2 #285

@tkx68

Description

@tkx68

The brglm2 fitting functions adds some more stuff and it would be nice to have a butcher method like the following:

butcher.brglmFit <- function(object, ...) {
  object <- NextMethod()   # ruft butcher.glm() aus {butcher}

  # -------------------------------------------------------
  # brglm2-spezifische Anhängsel löschen
  if (keep == "predict") {
    object$call <- NULL
    object$family$d1afun <- NULL
    object$family$d2afun <- NULL
    object$family$d3afun <- NULL
    object$family$d1variance <- NULL
    object$family$d2mu.deta <- NULL
  }
  object
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions