
Sample prior discrepancy trajectory and variance sequence
Source:R/func_calibrate.R
gen_prior_u_tau2.RdSimulates a prior trajectory \(u_1, \ldots, u_T\) of the spatial discrepancy field and the associated inverse-gamma variance sequence \(\tau^2_1, \ldots, \tau^2_T\) from the dynamic calibration model.
Arguments
- n0
Numeric scalar. Prior shape of \(\tau^2_0\).
- d0
Numeric scalar. Prior scale of \(\tau^2_0\).
- b
Numeric scalar. Discount factor in \((0, 1)\).
- m0
Numeric vector. Prior mean of the initial discrepancy \(u_0\).
- M0
Numeric matrix. Prior covariance of \(u_0\).
- U
Numeric matrix. Spatial covariance matrix for the discrepancy increments.
- nT_cal
Integer. Number of calibration time steps.
Value
A named list with:
- u0
Numeric vector. Sampled initial discrepancy.
- u
Matrix of dimension
c(nT_cal, s_cal)of discrepancy realisations.- tau2_0
Numeric scalar. Sampled \(\tau^2_0\).
- tau2
Numeric vector of length
nT_cal.