Skip to contents

Fits a combined conditional-logit-plus-random-intercept-GLMM likelihood for incidence responses under a KK matching-on-the-fly design, where reservoir (unmatched) subjects are excluded from the GLMM component (private$combine_reservoir_into_glmm() == FALSE): only concordant matched pairs contribute their random-intercept GLMM likelihood alongside the discordant-pair conditional-logit term, both sharing a single treatment coefficient \(\beta_T\). See InferencePropKKGLMM for the full model form (conditional-logit-on-discordant plus random-intercept-GLMM, jointly maximized) and InferenceAbstractKKCondLogitGLMM for the shared fitting/caching contract. Contrast with the sibling InferenceIncidKKCondLogitGLMMOneLik, which instead includes reservoir subjects in the GLMM component (combine_reservoir_into_glmm() == TRUE) — this class's naming ("IVWC") reflects that reservoir information, when used, is intended to be combined with this fit's estimate via inverse-variance weighting rather than folded into the same likelihood.

Details

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] -1.279993