Skip to contents

Fits a conditional logistic regression to the discordant matched pairs of an incidence response under a KK matching-on-the-fly design: for a pair whose two outcomes differ, the likelihood is \(P(\mathrm{treated\ member\ is\ the\ success}) = \mathrm{logistic}(\beta_T + \beta_x^\top(x_T - x_C))\). The pair's own intercept cancels, so no assumption is made about how outcomes vary between pairs. Concordant pairs carry no information under this model and reservoir (unmatched) subjects are not used (private$combine_reservoir_into_glmm() == FALSE). The returned estimate is the conditional log odds ratio \(\beta_T\). Contrast with InferenceIncidKKCondLogitGLMMOneLik, which adds the reservoir subjects through a logistic regression term sharing the same coefficients.

Details

Up to v1.0.4 the concordant pairs (and, for the OneLik variant, the reservoir) entered a random-intercept logistic GLMM. Concordant pairs agree on outcome by definition, so with pairs grouped correctly the random-intercept variance estimate diverges, the GLMM term stops depending on the coefficients, and the fit reduces to conditional logit (it was often reported nonestimable at the variance bound). Under a free pair effect a concordant pair's conditional likelihood is 1, so dropping them loses no information. The class name is kept for compatibility; max_abs_log_sigma is accepted but unused.

Legacy class. Not fully tested in comprehensive_tests.R. See InferenceAbstractKKCondLogitGLMM's known estimability limitation at high covariate counts, which applies here too.

Super classes

Inference -> InferenceAbstractKKCondLogitGLMM -> InferenceIncidKKCondLogitGLMMIVWC

Methods

+ inherited public methods from InferenceAbstractKKCondLogitGLMM
+ inherited public methods from Inference


InferenceIncidKKCondLogitGLMMIVWC$clone()

The objects of this class are cloneable with this method.

Usage

InferenceIncidKKCondLogitGLMMIVWC$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

seq_des = DesignSeqOneByOneKK14$new(n = 10, response_type = 'incidence')
for (i in 1:10) {
  seq_des$add_one_subject_to_experiment_and_assign(data.frame(x1 = rnorm(1), x2 = rnorm(1)))
}
seq_des$add_all_subject_responses(rbinom(10, 1, 0.5))
inf = InferenceIncidKKCondLogitGLMMIVWC$new(seq_des)
inf$compute_estimate()
#> [1] -23.56607