Examples: visualization, C++, networks, data cleaning, html widgets, ropensci.

Found 188 packages in 0.02 seconds

cer — by Charles Coverdale, 5 months ago

Download and Tidy Australian Clean Energy Regulator Data

Fetch Australian Clean Energy Regulator data on carbon credits, safeguard mechanism facilities, renewable energy certificates, and greenhouse gas reporting. Provides tidy access to the Australian Carbon Credit Unit ('ACCU') Scheme project register, Safeguard Mechanism baselines and covered emissions, Large-scale Renewable Energy Target ('LRET') power station accreditations, Small-scale Renewable Energy Scheme ('SRES') installation data, the National Greenhouse and Energy Reporting ('NGER') scheme, and Quarterly Carbon Market Reports < https://cer.gov.au/markets/reports-and-data>. Includes a post-Chubb ACCU integrity layer (Chubb 2022 Independent Review), Safeguard reform handling (declining industry baselines from July 2023), National Greenhouse and Energy Reporting scope discipline (Scope 1 / Scope 2 market vs location / Climate Active), reconciliation against the Quarterly Carbon Market Report, and reproducibility helpers (snapshot pinning, SHA-256 cache integrity, session manifest, optional Zenodo deposit). Data is published by the Clean Energy Regulator under a Creative Commons Attribution 4.0 International licence.

boe — by Charles Coverdale, 2 months ago

Download Data from the 'Bank of England' Statistical Database

Provides functions to download and tidy statistical data published by the 'Bank of England' < https://www.bankofengland.co.uk>. Covers Bank Rate, 'SONIA', gilt yields, exchange rates, mortgage rates, mortgage approvals, consumer credit, and money supply. Series are fetched from the 'Bank of England Interactive Statistical Database' using its CSV endpoint. Data is cached locally between sessions.

yieldcurves — by Charles Coverdale, 6 months ago

Yield Curve Fitting, Analysis, and Decomposition

Fits yield curves using Nelson-Siegel (1987) , Svensson (1994) , and cubic spline methods. Extracts forward rates, discount factors, and par rates from fitted curves. Computes duration and convexity risk measures. Computes Z-spread and key rate durations. Provides principal component decomposition following Litterman and Scheinkman (1991) , carry and roll-down analysis, and slope measures. All methods are pure computation with no external dependencies beyond base R; works with yield data from any source.

ivcheck — by Charles Coverdale, 4 months ago

Tests for Instrumental Variable Validity

Implements tests for the identifying assumptions of instrumental variable models, the local exclusion restriction and monotonicity conditions required for local average treatment effect identification. Covers Kitagawa (2015) , Mourifie and Wan (2017) , and Frandsen, Lefgren, and Leslie (2023) . Includes a one-shot wrapper that runs all applicable tests on a fitted instrumental variable model. Dispatches on 'fixest' and 'ivreg' model objects.

debtkit — by Charles Coverdale, 24 days ago

Debt Sustainability Analysis and Fiscal Risk Assessment

Analyses government debt sustainability using the standard debt dynamics framework from Blanchard (1990) and the IMF Debt Sustainability Analysis methodology (IMF, 2013) and the Sovereign Risk and Debt Sustainability Framework (IMF, 2022). Projects debt-to-GDP paths, decomposes historical debt changes into interest, growth, and primary balance contributions, and estimates fiscal reaction functions following Bohn (1998) . Produces stochastic fan charts via Monte Carlo simulation, standardised stress tests, and IMF- style heat map risk assessments. Computes S1/S2 sustainability gap indicators used by the European Commission. All methods are pure computation with no external dependencies beyond base R; works with fiscal data from any source.

hmrc — by Charles Coverdale, 5 months ago

Download and Tidy 'HMRC' Statistical Data

Provides functions to download, parse, and tidy statistical data published by 'HM Revenue and Customs' ('HMRC') on 'GOV.UK'. Returns annotated 'hmrc_tbl' data frames with provenance metadata (source URL, fetch time, vintage, cell methods) for reproducible fiscal research. Covers monthly tax receipts (41 tax heads from 2008), 'VAT' (from 1973), fuel duties (from 1990), tobacco duties (from 1991), annual 'Corporation Tax' receipts, stamp duty, research and development tax credit statistics (from 2000), tax gap estimates, 'Income Tax' liabilities by income range, and monthly property transaction counts. File URLs are resolved at runtime via the 'GOV.UK' Content API < https://www.gov.uk/api/content>, so data is always current without hardcoded URLs. Files are cached locally between sessions.

inequality — by Charles Coverdale, 24 days ago

Inequality Measurement, Decomposition, and Poverty Analysis

Tools for measuring income and wealth inequality. Computes the Gini coefficient with bootstrap or asymptotic confidence intervals following Davidson (2009) , the extended S-Gini family, Theil T and L indices (generalised entropy family), the Atkinson index, the Kolm absolute inequality index, Palma ratio, Hoover index, percentile ratios, and Lorenz curves. Supports between-within group decomposition following Bourguignon (1979) , income share tabulation, concentration indices for health inequality with Erreygers (2009) correction, Kakwani tax progressivity and Reynolds-Smolensky redistribution indices, Foster-Greer-Thorbecke poverty measures including the Sen index, growth incidence curves following Ravallion and Chen (2003) , and Wolfson polarisation. All functions accept optional survey weights and work with data from any source.

magentabook — by Charles Coverdale, 24 days ago

HM Treasury Magenta Book Policy Evaluation Primitives

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.

greenbook — by Charles Coverdale, a month ago

HM Treasury Green Book Cost-Benefit Analysis Primitives

Implements cost-benefit analysis primitives from HM Treasury Green Book guidance (HM Treasury, 2022, 2026): the kinked Social Time Preference Rate (STPR), discount factors, net present value (NPV), equivalent annual cost, and real-terms rebasing using the GDP deflator. Designed for UK central government appraisal and evaluation. Bundled parameter tables carry vintage metadata for reproducibility.

inflationkit — by Charles Coverdale, 6 months ago

Inflation Decomposition, Core Measures, and Trend Estimation

Tools for analysing inflation dynamics. Computes weighted contributions of price index components, core inflation measures (trimmed mean, weighted median, exclusion-based) following Bryan and Cecchetti (1994) , inflation persistence via sum-of-AR-coefficients, diffusion indices, Phillips curve estimation, breakeven inflation, and trend inflation using the Beveridge-Nelson decomposition and Hodrick-Prescott filter. All functions are pure computation and work with price data from any source.