# \donttest{
# The original Jaatha anaylsis:
model <- create_jaatha_model(function(x) rpois(10, x),
par_ranges = matrix(c(0.1, 0.1, 10, 10), 2, 2),
sum_stats = list(create_jaatha_stat("sum", sum)))
data <- create_jaatha_data(rpois(10, 9), model)
jaatha_result <- jaatha(model, data, cores = 2)
# Bootstrapping the results:
library(boot)
jaatha_boot_results <- boot_jaatha(jaatha_result, 50,
cores_per_run = 2)
boot.ci(jaatha_boot_results, type = "norm")
jaatha_boot_results$t0 <- jaatha_boot_results$mle
boot.ci(jaatha_boot_results, type = "norm")
# }
Run the code above in your browser using DataLab