simulate_detections: Simulate observations from parameters of a fitted object.

View source: R/simulate_fit.R

simulate_detectionsR Documentation

Simulate observations from parameters of a fitted object.

Description

Simulate observations from parameters of a fitted object.

Usage

simulate_detections(fit, esttype = "median", seed = NULL)

simulate_detections_lv.v(fit, esttype = "median", seed = NULL)

Arguments

fit

A runjags fitted object created by run.detectionoccupancy()

esttype

Specifies parameter set to extract from fit. See get_occ_b() and similar for specification.

Details

Simulate detections from all given parameters (including LV and random effects)

Functions

  • 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.

Examples

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)


sustainablefarms/msod documentation built on March 6, 2023, 7:17 a.m.