R/model-probit-gam.R

zprobitgam <- setRefClass("Zelig-probit-gam",
                        contains = "Zelig-binchoice-gam")

zprobitgam$methods(
  initialize = function() {
    callSuper()
    .self$name <- "probit.gam"
    .self$family <- "binomial('probit')"
    .self$linkinv <- binomial("probit")$linkinv
    .self$category <- "discrete"
    .self$wrapper <- "probit.gam"
  }
)

zprobitgam$methods(
  zelig = function(formula, data, ..., weights = NULL, by = NULL) {
    .self$zelig.call <- match.call(expand.dots = TRUE)
    .self$model.call <- .self$zelig.call
    callSuper(formula = formula, data = data, ...,
              weights = NULL, by = by)
  }
)
IQSS/ZeligGAM documentation built on May 8, 2019, 1:28 p.m.