simulate_detections | R Documentation |
Simulate observations from parameters of a fitted object.
simulate_detections(fit, esttype = "median", seed = NULL) simulate_detections_lv.v(fit, esttype = "median", seed = NULL)
fit |
A runjags fitted object created by |
esttype |
Specifies parameter set to extract from fit. See |
Simulate detections from all given parameters (including LV and random effects)
simulate_detections_lv.v
: Simulate LV values and detections.
Uses simulate_detections()
and simulate_lv.v()
.
For each site the simulated LV values are copied across all draws.
fit <- readRDS("./tmpdata/deto_wind.rds") fit$data <- as_list_format(fit$data) class(fit) <- c("jsodm", class(fit)) detected <- simulate_detections(fit, esttype = "median", UseFittedLV = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.