CausalMixGPD

Print a one-arm workflow bundle

print.causalmixgpd_bundle() gives a compact structural summary of the pre-run bundle created by build_nimble_bundle.

Usage

# S3 method for class 'causalmixgpd_bundle'
print(x, code = FALSE, max_code_lines = 200L, ...)

Arguments

Value

The object x, invisibly.

Details

The bundle is the compiled representation of the predictive model before MCMC. For a bulk-only fit, the underlying target law is $$f(y \mid x) = \sum_{k=1}^{K} w_k(x) f_k(y \mid x, \theta_k).$$ When a GPD tail is enabled, the same bulk mixture is spliced to a generalized Pareto tail above the threshold recorded in the bundle specification.

print() is intentionally brief. It is meant to confirm that the stored backend, kernel, truncation size, covariate structure, and code-generation artifacts match the intended model before you compile and sample with run_mcmc_bundle_manual.

See also

summary.causalmixgpd_bundle, mcmc, run_mcmc_bundle_manual.

Examples

if (FALSE) { # \dontrun{
y <- abs(stats::rnorm(50)) + 0.1
bundle <- build_nimble_bundle(y = y, backend = "sb", kernel = "normal",
                             GPD = FALSE, components = 6)
print(bundle)
print(bundle, code = TRUE, max_code_lines = 30)
} # }