Skip to contents

Methods for orchestraManifest::as_orchestra_manifest(), registered when orchestraManifest is installed (survestimand does not depend on it). Each turns a survestimand result into an orchestraManifest::orchestra_manifest whose data_hash lets orchestraManifest::verify_manifest() detect later changes.

  • A sest_fit emits inferential_target = "parameters"; params is the sest_tidy() table (term, component, estimate, std_error, ratio_type, ratio, conf_low, conf_high). A fit with no coefficients (Kaplan-Meier) emits an abstained manifest, reason "no_coefficients".

  • A sest_contrast (from sest_contrast(), sest_cr_contrast(), sest_pseudo() or sest_from_hazard_draws()) emits inferential_target = "treatment_effects"; params is the contrasts table (estimand, time, arm, reference, estimate, se, conf_low, conf_high) and the per-arm table is in summary$metrics$arms. Draws of the contrasts, when the result has them, are outputs (one row per draw).

  • A survestimand refusal (the power-gate value or a caught refusal condition) emits an abstained manifest with an empty params and the refusal's reason.

  • A sest_manifest (from as_sest_manifest()) emits "parameters" with its draws.

metadata$grounding is orchestraManifest::GROUNDING_UNVERIFIED.

Call orchestraManifest::as_orchestra_manifest(x, run_id = NULL) with a survestimand result x. run_id is NULL, or a single string naming the run; when NULL, an identifier is derived from the payload hash.

Examples

v <- survival::veteran
km <- survestimand(survival::Surv(time, status) ~ trt, v, method = "km")
con <- sest_contrast(km, v, arm = "trt", tau = 365)
m <- orchestraManifest::as_orchestra_manifest(con)
m@inferential_target
#> [1] "treatment_effects"
orchestraManifest::verify_manifest(m)$ok
#> [1] TRUE