Varying a data-generation parameter during SBC #29
|
Say my |
Answered by
wlandau
Mar 21, 2021
Replies: 1 comment 1 reply
|
If I understand correctly, you want to generate multiple datasets with different values of # _targets.R
library(targets)
library(tarchetypes)
library(stantargets)
list(
tar_map(
values = list(N = c(100, 500, 1000),
tar_stan_mcmc_rep_summary(x, data = generate_data(N = N), ...)
)
) |
1 reply
Answer selected by
mike-lawrence
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I understand correctly, you want to generate multiple datasets with different values of
Nand havetar_stan_mcmc_rep_summary()output for both, right? I believe you can accomplish this with static branching viatarchetypes::tar_map(). Sketch: