Computes the following function: $$\prod_{j=1}^{n} (r h_{j}(b))^{A_j} (1 - r h_{j}(b))^{1 - A_j} f_b(b; \theta_b)$$ where \(r\) is the randomization scheme. \(X\) is the covariate(s) vectors. \(fixef\) is the vector of fixed effects. \(b\) is the random (group-level) effect. \(ranef\) is the random effect variance.
logit_integrand(b, X, A, parameters, allocation = A, randomization = 1)
vector argument of values necessary for integrate
.
n by length(fixed effects) matrix of covariates.
vector of binary treatments
vector of fixed effect (and random effect if applicable). Random effect should be last element in vector.
The allocation strategy. Defaults to A so that is essentially ignored if allocation is not set to a value within (0, 1).
Randomization probability. Defaults to 1.
value of the integrand