
Combined Conditional-Poisson/Poisson Score, Standalone (C++)
Source:R/RcppExports.R
get_cpoisson_combined_score_cpp.RdComputes the score vector (gradient of the log-likelihood) of the combined KK
matched-pair conditional-Poisson (conditional-Binomial) plus reservoir
marginal-Poisson model documented in full at
fast_cpoisson_combined_with_var_cpp, at arbitrary
caller-supplied params_r (not necessarily the MLE). Exported standalone
— independent of any optimizer run — for direct numerical diagnostics (e.g.
verifying convergence, or building a custom estimating-equation solver) at a
specific parameter value.
Arguments
- yT_v_r
Treated-subject outcome count per matched pair.
- n_k_v_r
Total (treated + control) outcome count per matched pair.
- X_diff_v_r
Covariate differences (treated minus control) between the members of each matched pair.
- y_r_r
Reservoir (unmatched) subjects' outcomes.
- w_r_r
Reservoir subjects' treatment indicators.
- X_r_r
Reservoir subjects' covariates.
- params_r
A numeric vector of model parameters at which to evaluate the score.
See also
get_cpoisson_combined_hessian_cpp for the corresponding
Hessian at the same point; fast_cpoisson_combined_with_var_cpp
for the full model documentation.