filepath <- system.file("models/", "SEIR.stmx", package = "readsdr")
meas_mdl <- list("y ~ neg_binomial_2(net_flow(C), phi)")
estimated_params <- list(
sd_prior("par_beta", "lognormal", c(0, 1)),
sd_prior("par_rho", "beta", c(2, 2)),
sd_prior("I0", "lognormal", c(0, 1), "init"))
sd_prior_checks(filepath, meas_mdl, estimated_params, n_draws = 2,
start_time = 0, stop_time = 5,
integ_method = "rk4", timestep = 1/32)
Run the code above in your browser using DataLab