Skip to contents

Generates a comprehensive, standardized JSON record covering all six estimators. Suitable for reproducibility workflows (Xu & Yang 2026) and downstream tooling. Pass the result of mspe_ratio_pval() or gsc_boot() via the inference argument to include inference results.

Usage

export_json(x, file = "coresynth_results.json", inference = NULL, digits = 6L)

Arguments

x

A coresynth object from scm_fit().

file

Output file path. Default "coresynth_results.json". Pass NULL to skip writing and return the R list invisibly.

inference

Optional list from mspe_ratio_pval() or gsc_boot(). When provided, populates the inference section and updates estimate with p_value, se, ci_lower, ci_upper.

digits

Number of significant digits applied to numeric values (default 6L).

Value

Invisibly, the R list that was (or would be) serialized.