R/model-binchoice-survey.R

#' Object for Binary Choice outcomes with Survey Weights
#' for inheritance across models in Zelig
#'
#' @import methods
#' @export Zelig-binchoice-survey
#' @exportClass Zelig-binchoice-survey
#'
#' @include model-zelig.R
#' @include model-binchoice.R
#' @include model-survey.R
zbinchoicesurvey <- setRefClass("Zelig-binchoice-survey",
                           contains = c("Zelig-survey",
                                        "Zelig-binchoice"))

zbinchoicesurvey$methods(
  initialize = function() {
    callSuper()
    .self$family <- "binomial"
    .self$category <- "continuous"
    # JSON from parent
  }
)

Try the Zelig package in your browser

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

Zelig documentation built on Jan. 8, 2021, 2:26 a.m.