Package: magentabook Title: HM Treasury Magenta Book Policy Evaluation Primitives Version: 0.1.1 Authors@R: person("Charles", "Coverdale", , "charlesfcoverdale@gmail.com", role = c("aut", "cre")) Description: Implements policy evaluation primitives from HM Treasury Magenta Book guidance (HM Treasury, 2026): theory of change and log-frame construction, evaluation planning and stakeholder mapping, power and minimum-detectable-effect calculations for randomised designs (including cluster and stepped-wedge designs following Hussey and Hughes (2007) and Hemming et al. (2015) ), Maryland Scientific Methods Scale ratings, structured confidence ratings, light-weight difference-in-differences and interrupted-time-series estimators (Bernal et al. (2017) ) with cluster-robust standard errors (Cameron and Miller (2015) ), pre-treatment balance checks (Stuart (2010) ), and cost-effectiveness analysis (cost per outcome, incremental cost-effectiveness ratio, acceptability curves, incremental net benefit, quality-adjusted and disability-adjusted life years). Designed as the evaluation companion to the appraisal package 'greenbook'. Bundled rubric and reference tables carry vintage metadata for reproducibility. Aligned with the May 2026 republication of the Magenta Book. Depends: R (>= 4.1.0) License: MIT + file LICENSE Encoding: UTF-8 Language: en-US Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.3 Imports: cli (>= 3.6.0), stats, utils Suggests: testthat (>= 3.0.0), knitr, rmarkdown, openxlsx, officer, flextable, pwr, sandwich, swCRTdesign, BCEA, cobalt Config/testthat/edition: 3 URL: https://github.com/charlescoverdale/magentabook BugReports: https://github.com/charlescoverdale/magentabook/issues VignetteBuilder: knitr Repository: https://charlescoverdale.r-universe.dev Date/Publication: 2026-05-19 09:04:42 UTC RemoteUrl: https://github.com/charlescoverdale/magentabook RemoteRef: HEAD RemoteSha: a935b2602ee3add829c5a6f9e378bf6fcee335e2 NeedsCompilation: no Packaged: 2026-06-18 06:50:46 UTC; root Author: Charles Coverdale [aut, cre] Maintainer: Charles Coverdale