IJSE-package: IJ inference for posterior expectations

IJSE-packageR Documentation

IJ inference for posterior expectations

Description

Compute infinitesimal jackknife sampling uncertainty from matched posterior draws and observation-level log likelihoods, with optional cluster aggregation.

Start with your available inputs

A fitted brms model ijse returns structured inference.
Draws and log likelihoods ijse_draws is backend independent.
Existing vector-only code IJ_se preserves the original API.
A computed result summary.ijse documents standard methods.

The matrix/callback interface requires no brms or Stan installation. The brms interface requires brms; installed synthetic examples can be used without compiling Stan or fitting a new model.

What the uncertainty means

The target is a posterior expectation, including a function evaluated jointly on every draw. Posterior draw covariance and IJ sampling covariance are different quantities. vcov(result) returns IJ covariance; vcov(result, type = "posterior") returns posterior covariance. confint(result) uses a normal reference and IJ SEs. IJ changes uncertainty, not estimator bias, and cluster IDs must reflect meaningful independent units.

Executable tutorials and calibration study

  • vignette("ijse", package = "IJSE"): complete first calculation, covariance, transformations and callbacks without Stan.

  • vignette("ijse-brms", package = "IJSE"): actual median-regression examples, explicit sampling IDs, joint contrasts and draw selection.

  • vignette("ijse-diagnostics", package = "IJSE"): chain metadata, influence derivatives and reproduced input errors.

  • vignette("ijse-study", package = "IJSE"): 40,000 exact-posterior datasets, 320 independent draw ensembles and 400 actual brms fits, with Monte Carlo uncertainty and explicit calibration limitations.

The three tutorial scripts are installed under system.file("tutorials", package = "IJSE"). The study vignette reads compact results; package checks do not rerun the MCMC study. Use citation("IJSE") for software and published-method citations.

Author(s)

Maintainer: Feng Ji f.ji@utoronto.ca (ORCID)

Authors:

See Also

ijse, ijse_draws, summary.ijse


IJSE documentation built on Oct. 22, 2026, 5:18 p.m.