Skip to contents

Fits a combined conditional-logit-plus-random-intercept-GLMM likelihood for proportion responses under a KK matching-on-the-fly design. Matched pairs with a discordant pair-difference are handled by a conditional (fixed pair-effect) logistic term, while concordant/reservoir subjects are handled by a random-intercept logistic mixed model with intercept \(b_g \sim N(0, \sigma_b^2)\) per matched-set/reservoir group \(g\); both terms share the same treatment coefficient \(\beta_T\), jointly maximized by the internal fast_clogit_plus_glmm_cpp routine. This combines the design-exact conditional-logit treatment of matched pairs (no nuisance pair-intercept to estimate) with a GLMM's ability to still contribute information from concordant pairs and reservoir subjects, which a pure conditional-logit-on-discordant-pairs-only approach would discard. \(\exp(\hat\beta_T)\) is the common treatment odds ratio. likelihood_tier = "full": likelihood-ratio, score, and Wald tests are all available when the model converges. See InferenceAbstractKKCondLogitGLMM for the shared model-fitting and caching contract used by this class's incidence-response siblings (InferenceIncidKKCondLogitGLMMIVWC, InferenceIncidKKCondLogitGLMMOneLik).

References

Kapelner, A. and Krieger, A. M. (2014). "Matching on-the-fly: Sequential allocation with higher power and efficiency." Biometrics, 70(2), 378-388, doi:10.1111/biom.12148 , for the KK matching-on-the-fly design this class is built for; Breslow, N. E., and Clayton, D. G. (1993). "Approximate Inference in Generalized Linear Mixed Models." Journal of the American Statistical Association, 88(421), 9-25, doi:10.2307/2290687 , for the GLMM likelihood framework combined with the conditional-logit term here.

Super classes

Inference -> InferenceAbstractKKCondLogitGLMM -> InferencePropKKGLMM

Methods

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


InferencePropKKGLMM$new()

Initialize inference for the combined conditional-logit (discordant matched pairs) plus random-intercept-GLMM (concordant pairs/reservoir) proportion model; see InferencePropKKGLMM for the model form. Does not fit the model; the fit is deferred to the first call to compute_estimate() or a method that requires it.

Usage

InferencePropKKGLMM$new(
  des_obj,
  model_formula = NULL,
  max_abs_reasonable_coef = 10000,
  max_abs_log_sigma = 8,
  verbose = FALSE,
  smart_cold_start_default = NULL,
  optimization_alg = NULL
)

Arguments

des_obj

A completed Design object with a proportion response.

model_formula

Optional formula for covariate adjustment.

max_abs_reasonable_coef

Cap for reasonable coefficient estimates.

max_abs_log_sigma

Cap for reasonable log random effect variance.

verbose

Whether to print progress messages.

smart_cold_start_default

Whether to use smart cold start values.

optimization_alg

Character. Optimization algorithm (default "lbfgs").


InferencePropKKGLMM$clone()

The objects of this class are cloneable with this method.

Usage

InferencePropKKGLMM$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.