<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Runner — DSAMbayes Documentation</title>
    <link>/runner/index.html</link>
    <description>Purpose Document CLI and YAML runner contracts for reproducible DSAMbayes runs.&#xA;Audience Users operating DSAMbayes through scripts/dsambayes.R. Engineers maintaining runner config and artefact contracts. Pages Page Topic CLI Usage Commands, flags, exit codes, and error modes Config Schema YAML keys, defaults, and validation rules Output Artefacts Staged folder layout, file semantics, and precedence rules</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <atom:link href="/runner/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CLI Usage</title>
      <link>/runner/cli-usage/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/runner/cli-usage/index.html</guid>
      <description>Purpose Define the supported command-line interface for scripts/dsambayes.R, including required flags, optional flags, and execution semantics.&#xA;Prerequisites Before using the CLI:&#xA;Complete Install and Setup. Run commands from repository root. Ensure DSAMbayes is installed and available in R_LIBS_USER. Entry point Rscript scripts/dsambayes.R &lt;command&gt; [flags] The script supports these commands:</description>
    </item>
    <item>
      <title>Config Schema</title>
      <link>/runner/config-schema/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/runner/config-schema/index.html</guid>
      <description>Purpose This page documents the authored YAML contract used by:&#xA;scripts/dsambayes.R DSAMbayes::run_from_yaml() runme.R The authored schema is schema_version: 2 only. Older formula-driven YAML files are intentionally rejected.&#xA;Processing order The runner processes configs in this order:&#xA;Parse YAML. Coerce YAML infinity tokens (.Inf, -.Inf). Apply v2 defaults. Resolve relative paths against the config file directory. Validate the authored v2 contract. Compile the authored config into the internal runner config. Apply managed holiday terms, then build the model and run. Root sections Key Required Purpose schema_version yes Must be 2. data yes Input data path, format, and date handling. target yes Outcome column, KPI type, and response transform. media yes Modeled media terms. controls yes Non-media predictors, including manual trend/seasonality terms. effects no Managed effects. In M1 this is holidays only. model yes Model class and scaling options. hierarchy conditional Required for model.type: re and model.type: cre. pooling conditional Required for model.type: pooled. priors no Default priors plus grouped or explicit overrides. boundaries no Grouped or explicit parameter boundaries. fit no MCMC or optimise settings. diagnostics no Diagnostics, model selection, and time-series selection settings. allocation no Budget optimisation settings. outputs no Output paths and artifact toggles. forecast no Reserved forecast toggle. Unknown keys fail validation.</description>
    </item>
    <item>
      <title>Output Artefacts</title>
      <link>/runner/output-artifacts/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/runner/output-artifacts/index.html</guid>
      <description>Purpose This page defines what the YAML runner writes, where files are written, and which config flags control each artefact.&#xA;Related pages:&#xA;CLI Usage Config Schema Run directory and layout semantics Run directory precedence:&#xA;CLI --run-dir outputs.run_dir Timestamped folder under outputs.root_dir Layout behaviour:</description>
    </item>
  </channel>
</rss>