simulate_fit: Simulate observations from parameters of a fitted object.

Description Usage Arguments Examples

View source: R/simulate_fit.R

Description

Simulate observations from parameters of a fitted object.

Usage

1
simulate_fit(fit, esttype = "median", UseFittedLV = TRUE)

Arguments

fit

A runjags fitted object created by run.detectionoccupancy()

esttype

Specifies parameter set to extract from fit, see get_theta()

UseFittedLV

Logical. If TRUE, the simulation uses fitted latent variable values. If FALSE, latent variable values will be simulated for each ModelSite

Examples

1
2
3
fit <- readRDS("./tmpdata/deto_wind.rds")
fit$data <- as_list_format(fit$data)
detected <- simulate_fit(fit, esttype = "median", UseFittedLV = TRUE)

sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.