Documentation
¶
Overview ¶
Package pppindex embeds a purchasing-power price-level index per territory.
Each value is the World Bank World Development Indicators PPP conversion factor, GDP (LCU per international $, PA.NUS.PPP) divided by the official exchange rate (LCU per US$, period average, PA.NUS.FCRF) for the latest year from 2021 through 2025 in which both series are reported. The United States is 1. Only App Store Connect territory IDs are kept, and values outside 0.05 to 2.0 are omitted because they come from series with mismatched currency units or official exchange rates. Bulgaria's exchange rate is converted from BGN to EUR at the fixed 1.95583 rate because its PPP factor is reported in EUR. Data is licensed under CC BY 4.0 and was retrieved from api.worldbank.org on 2026-10-22 (series last updated 2026-10-08).
Index ¶
Constants ¶
const ( // Source names the dataset and series behind the index. Source = "World Bank, World Development Indicators: PA.NUS.PPP / PA.NUS.FCRF" // License is the dataset license. License = "CC BY 4.0" // AsOf is the date the source series were last updated. AsOf = "2026-10-08" )
Variables ¶
This section is empty.
Functions ¶
func PriceLevel ¶
PriceLevel returns the price level for a 3-letter territory ID.
Types ¶
This section is empty.