Economic and superimposed inflation
esg_inflation.Rdesg_inflation() is economic inflation, an Ornstein-Uhlenbeck rate,
di = kappa (mean - i) dt + sigma dW, and superimposed_inflation() the
claims inflation above it, an AR(1) by year,
s_t = mean + persistence (s_(t-1) - mean) + sigma e_t. Each can join
an esg().
Usage
esg_inflation(kappa, mean, sigma, i0)
superimposed_inflation(mean, persistence, sigma)
inflation_index_mean(x, t)
inflation_log_index_mean(x, t)
inflation_log_index_variance(x, t)Details
mean() and variance() give the rate's moments at t years (the
superimposed excess's variance after t whole years),
stationary_variance() its variance in the long run, and
inflation_index_mean(), inflation_log_index_mean() and
inflation_log_index_variance() the moments of the price index at t
years.
Examples
i <- esg_inflation(0.5, 0.025, 0.01, 0.03)
mean(i, 1)
#> [1] 0.02803265
inflation_index_mean(i, 1)
#> [1] 1.029369
stationary_variance(superimposed_inflation(0.01, 0.5, 0.01))
#> [1] 0.0001333333