Euler-Maruyama Ornstein-Uhlenbeck simulation
Source:R/tps_stochastic.R
morie_tps_langevin_simulate.RdFits an OU process \(dX_t = theta(mu - X_t) dt + sigma dW_t\)
to daily incident counts via OLS on first-differences, then runs
n_paths forward simulations of length T_days.
Usage
morie_tps_langevin_simulate(
df,
ds_name = "?",
n_paths = 100L,
T_days = 365L,
dt = 1,
seed = 42L
)