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

Found 183 packages in 0.03 seconds

inflationkit — by Charles Coverdale, 2 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.

debtkit — by Charles Coverdale, a month 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.

comtrade — by Charles Coverdale, a month ago

Access and Analyse UN Comtrade International Trade Data

Download and analyse international merchandise and services trade data from the United Nations Comtrade database < https://comtradeplus.un.org/>. Retrieve bilateral trade flows, compute trade analytics (revealed comparative advantage, trade concentration, trade balance), and convert between commodity classifications (HS, SITC, BEC). Covers 200+ reporter countries, 60+ years of goods trade data (1962-present), and services trade via EBOPS. Works without registration for basic queries. A free API key from < https://comtradedeveloper.un.org/> unlocks full access.

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.

ukhousing — by Charles Coverdale, 23 days ago

Access UK Housing Data from Land Registry, EPC, and Planning

Fetch UK housing data from official sources. Access the UK House Price Index and Price Paid Data from 'HM Land Registry' < https://landregistry.data.gov.uk/>, domestic and non-domestic Energy Performance Certificates from the 'MHCLG' Open Data service < https://epc.opendatacommunities.org/>, and planning application, brownfield land, and local plan data from 'planning.data.gov.uk' < https://www.planning.data.gov.uk/>. Data covers all 441 UK local authorities from 1995 to the present. Functions accept flexible filters (postcode, local authority, property type, date range) and return tidy data frames. Downloaded data is cached locally for subsequent calls.

carbondata — by Charles Coverdale, 23 days ago

Access Carbon Market Data from Emissions Trading Systems and Voluntary Registries

Unified access to carbon market data from compliance emissions trading systems ('EU ETS', 'UK ETS', 'RGGI', California Cap-and-Trade) and voluntary carbon markets (Verra, Gold Standard, American Carbon Registry, Climate Action Reserve, via the Berkeley Voluntary Registry Offsets Database and the 'CarbonPlan' 'OffsetsDB' API). Includes cross-market price data from the 'International Carbon Action Partnership' ('ICAP') Allowance Price Explorer < https://icapcarbonaction.com/en/ets-prices>, global carbon pricing from the World Bank Carbon Pricing Dashboard < https://carbonpricingdashboard.worldbank.org/>, and the historical 'RFF' World Carbon Pricing Database following Dolphin, Pollitt and Newbery (2020) . Data is downloaded from public sources on first use and cached locally.

ivcheck — by Charles Coverdale, 22 days 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.

ato — by Charles Coverdale, 16 days ago

Download and Tidy Australian Taxation Office Data

Fetch Australian Taxation Office ('ATO') Taxation Statistics and related datasets via the 'data.gov.au' Comprehensive Knowledge Archive Network ('CKAN') API < https://data.gov.au/data/api/3/>. Provides tidy access to individual, company, superannuation, goods and services tax ('GST'), fringe benefits tax ('FBT'), Voluntary Tax Transparency Code ('VTTC'), Pay As You Go ('PAYG') withholding, charity, excise, and Corporate Tax Transparency data, plus Division 293, Petroleum Resource Rent Tax, Medicare Levy Surcharge, fuel tax credits, compliance, and Working Holiday Maker aggregates. Includes reproducibility helpers (snapshot pinning, SHA-256 cache integrity, session manifest, optional 'Zenodo' deposit), classification crosswalks ('ANZSIC' 2006 to 2020, 'ANZSCO' 2013 to 2021), panel harmonisation, reconciliation against Final Budget Outcome totals, and real-terms and per-capita helpers backed by bundled Australian Bureau of Statistics ('ABS') Consumer Price Index and Estimated Resident Population series. Bridges to the 'taxstats' 2 per cent microdata sample via column-schema mapping. Data is published by the Australian Taxation Office under Creative Commons Attribution 2.5 Australia or 3.0 Australia licences (dataset-dependent).

boe — by Charles Coverdale, 17 days 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.

greenbook — by Charles Coverdale, 16 days 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.