Skip to contents

One path of index levels per simulation for the periods after a calendar_index()'s last given period, on the index's scale (levels, not rates), as reinflate_draws() takes them (issue #979, design note docs/design/reserving-inflation.md, decision 11). Python's IndexPaths. The package does not generate paths: they are an input, from an economic scenario generator or a fitted time series.

Usage

index_paths(first, values)

Arguments

first

The first period of every path: "2025" (or the number 2025), "2025H1", "2025Q1" or "2025-01". Its grain is the paths' grain.

values

A numeric matrix with one row per simulation and one column per period from first on: finite and positive.

Value

An index_paths with the properties first, values, and the read-only n_sims (the rows), n_periods (the columns) and periods (the period labels, one per column).

Examples

# Two simulations of 2023 and 2024.
paths <- index_paths("2023", rbind(c(1.10, 1.20), c(1.05, 1.08)))
paths@n_sims
#> [1] 2
paths@periods
#> [1] "2023" "2024"