Skip to content

Commit

Permalink
add naive results
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sabanes Bove committed Apr 8, 2024
1 parent 5e006b9 commit bef19c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions simulations/naive.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ naive_file <- "results/naive.rds"
naive_results <- if (file.exists(naive_file)) {
readRDS(naive_file)
} else {
res <- lapply(
res <- mclapply(
scenarios,
function(x) naive_analysis(x$scenario)
FUN = function(x) naive_analysis(x$scenario),
mc.cores = availableCores()
)
saveRDS(res, file = naive_file)
res
Expand Down
Binary file added simulations/results/naive.rds
Binary file not shown.

0 comments on commit bef19c3

Please sign in to comment.