This directory contains Quarto diagnostic documents for the residential model. These documents are built and saved automatically for each model run. They are intended to help refine, examine, and diagnose individual models. Cross-model comparison is performed via separate Tableau dashboards. The two document types currently available are:
performance.qmd
- Overall look at model performance containing ratio statistics, diagnostic visualizations, debugging/quality control tables, etc.challenge_groups.qmd
- Report on specific, hard-to-model properties such as prorated PINs, multi-card properties, etc.
The documents in this directory are modularized and separated by topic area. Documents prefixed with an underscore are considered modules and can be interpolated into other documents using the Quarto include shortcode. For example, performance/_sales.qmd
builds only plots and tables related to the input sales data.
Main documents do not have an underscore prefix. They combine metadata with multiple modules to generate a single, large report. For example, performance/performance.qmd
combines modules and renders to a single HTML document with a table of contents.
Note
Each .qmd
file (even a module) can be rendered independently. Simply click the Render button in RStudio to knit only that document. Note however, that the HTML styling/metadata from performance/performance.qmd
will not apply to the rendered output (no table of contents, hidden code, etc.).
To add new content to a module of a main document, simply edit the relevant module. Your changes will be interpolated directly into the main document when it renders.
Be sure to load any new data you used in the module in _setup.qmd
, and add any new libraries you used to the main DESCRIPTION
file (see Managing R Dependencies in the main README).
To add a new module, create a new Quarto document and prefix its filename with an underscore. Be sure to call the setup script in a chunk at the beginning of the file. This script loads all data, initializes some useful objects, and generally sets up the document environment.
Once your module is finalized, check that it renders independently using the Render button at the top of the document. If it succeeds, include it in a main document using an include shortcode.