Marginal-MML sandwich covariance for a mixed-subjects fit
Source:R/risk.R
vcov_mixed_subjects_mml.RdComputes the full sandwich covariance for the scalar marginal-MML PPI++
estimator from fit_mixed_subjects_mml(). The bread uses Louis's (1982)
observed marginal-information formula
Arguments
- object
A scalar-lambda
fit_mixed_subjects_mml()fit.- ridge
Ridge regularization for bread inversion.
- ...
Unused.
Details
$$A_\lambda^\mathrm{marg} = H_\lambda^\mathrm{comp} - I_\lambda^\mathrm{miss}$$
rather than the EM/complete-data Hessian used by vcov_mixed_subjects().
Using the complete-data Hessian as the bread for a marginal-MML estimator
would over-state efficiency by ignoring the missing-information correction.
The meat uses the standard marginal per-person score vectors (posteriors at
the converged parameters), which is identical to vcov_mixed_subjects().
When is this function called automatically? The vcov() method for
"mixedsubjects_fit" objects (see stats::vcov()) dispatches here whenever
isTRUE(object$mml) && length(object$lambda) == 1. For vector-lambda fits, or
for frozen expected-count fits, the existing vcov_mixed_subjects() is used.
See also
vcov_mixed_subjects() for the frozen expected-count version. The
internal louis_missing_info() helper computes the missing-information
correction.