pppindex

package
v1.261128.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func PriceLevel(territory string) (*big.Rat, bool)

PriceLevel returns the price level for a 3-letter territory ID.

func RelativeLevel

func RelativeLevel(baseLevel *big.Rat, territory string) (*big.Rat, bool)

RelativeLevel returns a territory's price level divided by baseLevel, rounded half up to 4 decimals.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL