Reference
Exact operational and technical reference for marketbayesmeta.
Exact operational and technical reference for marketbayesmeta.
marketbayesmeta installs three console scripts.
The audit mode reports model-readiness and tracker-quality checks for supported evidence/scale pairs present in the tracker.
This validates the YAML schema and confirms that the configured tracker path exists.
This runs the full config-driven workflow and writes configured outputs. It returns a non-zero exit code for package-level analysis failures, including blocked readiness, tracker validation errors, pooling errors, or blocking diagnostic failures.
Without an argument, runme.py looks for config.yaml in the repository root.
Use YAML config files for repeatable analysis runs.
| Field | Required | Default | Notes |
|---|---|---|---|
project.name |
No | marketbayesmeta_analysis |
Human-readable project name. |
project.analyst |
No | null |
Analyst or owner. |
project.notes |
No | "" |
Short project note. |
data.tracker |
Yes | None | CSV tracker path, resolved relative to the config file. |
data.include_partial |
No | false |
Include analysis_ready=partial rows. |
analysis.evidence_type |
Yes | None | Currently pooled by default: geo_test, bls. |
analysis.metric |
Yes | None | Exact metric name to pool. |
analysis.scale |
Yes | None | log_relative or percentage_point. |
analysis.max_abs_percent_uplift |
No | 90 |
Hard limit for % geo uplift to log-relative conversion. |
model.draws |
No | 2000 |
Posterior draws per chain. |
model.tune |
No | 1000 |
Tuning draws per chain. |
model.chains |
No | 4 |
Number of chains. |
model.target_accept |
No | 0.9 |
Passed to PyMC sampling. |
model.random_seed |
No | null |
Sampling seed. |
model.progressbar |
No | false |
Keep false for scripted runs. |
priors.mu_sd |
No | scale-aware | Prior SD for pooled mean mu. |
priors.tau_scale |
No | scale-aware | HalfNormal scale for heterogeneity tau. |
diagnostics.allow_directional |
No | false |
Allow directional readiness runs only for exploratory work. |
diagnostics.allow_not_recommended |
No | false |
Override only for explicit exploratory work. |
diagnostics.fail_on_diagnostic_failure |
No | true |
Make failed sampler diagnostics blocking. |
outputs.directory |
No | output/analysis |
Output folder, resolved relative to config file. |
Rows with intervals must state ci_type. They must also state ci_level unless
uncertainty.default_ci_level is explicitly set in config.
P-values are converted only when p_value_sidedness=two_sided.
Custom prior sensitivity specs can be provided as sensitivity.prior_specs; when omitted
the package uses scale-aware defaults.
Config runs write a small artefact set intended for review and downstream reporting.
| File | Purpose |
|---|---|
config.resolved.yaml |
Config with defaults made explicit. |
model_input.csv |
Effects and standard errors used for modelling. |
effect_preparation.csv |
Row-level source values, uncertainty provenance, transformations, exclusions, and warnings. |
readiness.csv |
Model-readiness status and messages. |
tracker_issues.csv |
Tracker quality warnings/errors. |
effect_summary.csv |
Pooled mean posterior summary. |
future_true_effect_summary.csv |
Latent true effect for a comparable future study. |
analysis_report.md |
Analyst-facing summary of reportability, diagnostics, readiness, and headline effects. |
diagnostics.csv |
Sampler diagnostic checks. |
prior_diagnostics.csv |
Approximate prior-information warning for mu plus tau prior-predictive checks. |
ppc.csv |
In-sample study-level posterior predictive checks. |
run_status.json |
Machine-readable run outcome, including reportable. |
outputs_manifest.json |
Machine-readable artefact list. |
Optional files:
| File | Written when |
|---|---|
uncertainty_sensitivity.csv |
sensitivity.uncertainty: true |
prior_sensitivity.csv |
sensitivity.prior: true |
Prefer adding columns over renaming or removing columns. If a public artefact changes, update fixture tests and docs in the same change.
The package exports the main workflow helpers from marketbayesmeta.
load_tracker_csvassess_model_readinesstracker_quality_issuesreadiness_frametracker_issue_framemake_meta_analysis_inputmake_effect_preparation_rowsfit_random_effectssummarise_effectsummarise_diagnosticscheck_diagnosticsmake_posterior_predictive_check_rowsposterior_predictive_check_framedefault_priors_for_scaleassess_prior_influencefit_prior_sensitivitymake_prior_sensitivity_report_framemake_sensitivity_inputsmake_sensitivity_report_frameload_configrun_analysisrun_config