
Emit survestimand results as orchestra manifests
Source:R/orchestra.R
as_orchestra_manifest.survestimand.RdMethods 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";paramsis thesest_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(fromsest_contrast(),sest_cr_contrast(),sest_pseudo()orsest_from_hazard_draws()) emitsinferential_target = "treatment_effects";paramsis the contrasts table (estimand,time,arm,reference,estimate,se,conf_low,conf_high) and the per-arm table is insummary$metrics$arms. Draws of the contrasts, when the result has them, areoutputs(one row per draw).A survestimand refusal (the power-gate value or a caught refusal condition) emits an abstained manifest with an empty
paramsand 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