Skip to contents

Export the settings and provenance of an analysis

Usage

wsmed_reproducibility(object, file = NULL)

Arguments

object

A wsmed_model, wsmed_fit, wsmed_inference, wsmed_results, or current wsMed object. A one-call object exports all stored inference methods.

file

Optional new .rds file for the report. Existing files are not overwritten.

Value

A plain list of model specification, settings, reference coding, diagnostics, and recorded software versions; invisibly when written to file.

Details

This report contains no participant-level data or simulation draws. It is an analysis manifest, not a replacement for the data, analysis script, or a dependency lockfile. It never fits, imputes, samples, or updates results. Recorded fitting versions are separated from the environment used to export. Metadata absent from an older saved object remain absent, not reconstructed from currently installed package versions. Reports for extracted results include the query and contrast definition as well as the upstream settings.

Examples

data(example_data)
m <- wsmed_model(c(before = "D1", after = "D2"),
  list(A = c(before = "A1", after = "A2")))
f <- wsmed_fit(m, example_data)
report <- wsmed_reproducibility(f)
report$analysis$missing
#> [1] "DE"