| do_sim | R Documentation |
Generates data from the data generating process in Section 3.1 of Li,
Liao, and Quaedvlieg (2022). The conditioning variable X_t follows
a Gaussian AR(1) with coefficient 0.5, and the loss differentials are
Y_{j,t} = 1 - a \exp(-(X_t - c)^2) + u_{j,t}, where u_{j,t}
follows an AR(1) with coefficient rho_u.
do_sim(J, n, a, c, rho_u)
J |
Integer; number of competing forecast methods. |
n |
Integer; sample size. |
a |
Numeric; controls the shape of the conditional mean function.
|
c |
Numeric; location parameter for the minimum of |
rho_u |
Numeric in |
A list with components:
Y |
An |
X |
A numeric vector of length |
sim <- do_sim(J = 3, n = 250, a = 1, c = 0, rho_u = 0.4)
str(sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.