| simFPOcc | R Documentation |
The function simFPOcc simulates single-species data assumed to arise from some automated algorithm that processed remote sensing data (e.g., acoustic recording units, camera traps). These data are assumed to contain both false positive and false negative observations. This function is designed to be used for simulation studies, power assessments, or function testing. Data can be optionally simulated with a spatial Gaussian Process in the occurrence portion of the model. Non-spatial random intercepts can also be included in the observation models (i.e., true positive detection rate, false positive rate) and the occurrence model.
simFPOcc(J.x, J.y, n.rep, n.rep.max, beta, gamma, delta, psi.RE = list(),
mu.RE = list(), omega.RE = omega.RE, sp = FALSE, svc.cols = 1, cov.model,
sigma.sq, phi, nu, x.positive = FALSE, grid, prop.val, kappa,
family = "Poisson", ...)
J.x |
a single numeric value indicating the number of sites to simulate detection-nondetection data along the horizontal axis. Total number of sites with simulated data is |
J.y |
a single numeric value indicating the number of sites to simulate detection-nondetection data along the vertical axis. Total number of sites with simulated data is |
n.rep |
a numeric vector of length |
n.rep.max |
a single numeric value indicating the maximum number of replicate surveys. This is an optional argument, with its default value set to |
beta |
a numeric vector containing the intercept and regression coefficient parameters for the occupancy portion of the single-species occupancy model. |
gamma |
a numeric vector containing the intercept and regression coefficient parameters for the true positive rate observation model of the single-species occupancy model. |
delta |
a numeric vector containing the intercept and regression coefficient parameters for the false positive rate observation model of the single-species occupancy model. |
psi.RE |
a list used to specify the non-spatial random intercepts included in the occupancy portion of the model. The list must have two tags: |
mu.RE |
a list used to specify the non-spatial random intercepts included in the true positive rate observation model. The list must have two tags: |
omega.RE |
a list used to specify the non-spatial random intercepts included in the false positive rate observation model. The list must have two tags: |
sp |
a logical value indicating whether to simulate a spatially-explicit occupancy model with a Gaussian process. By default set to |
svc.cols |
a vector indicating the variables whose effects will be
estimated as spatially-varying coefficients. |
cov.model |
a quoted keyword that specifies the covariance function used to model the spatial dependence structure among the latent occurrence values. Supported covariance model key words are: |
sigma.sq |
a numeric value indicating the spatial variance parameter. Ignored when |
phi |
a numeric value indicating the spatial decay parameter. Ignored when |
nu |
a numeric value indicating the spatial smoothness parameter. Only used when |
x.positive |
a logical value indicating whether the simulated covariates should be simulated as random standard normal covariates ( |
grid |
an atomic vector used to specify the grid across which to simulate the latent spatial processes. This argument is used to simulate the underlying spatial processes at a different resolution than the coordinates (e.g., if coordinates are distributed across a grid). |
prop.val |
a single numeric value ranging between 0 and 1 that indicates the proportion of the total signals that are manually vetted by a human observer. |
kappa |
a single numeric value containing the dispersion parameter for the Poisson model of the detected signals. Only relevant when |
family |
the distribution to use for the observation model. Currently supports |
... |
currently no additional arguments |
A list comprised of:
X |
a |
X.mu |
a three-dimensional numeric array with dimensions corresponding to sites, repeat visits, and number of true positive rate regression coefficients. This is the design matrix used for the true positive rate sub-model of the occupancy model. |
X.omega |
a three-dimensional numeric array with dimensions corresponding to sites, repeat visits, and number of false positive rate regression coefficients. This is the design matrix used for the false positive rate sub-model of the occupancy model. |
coords |
a matrix of coordiantes of each occupancy site, with the rows corresponding to a unique spatial coordinate and the columns corresponding to the easting and northing, respectively. This will be identical to coords.full unless |
coords.full |
a |
w |
a matrix of the spatial random effect values for each site. The number of columns is determined by the |
psi |
a |
z |
a length |
mu |
a |
omega |
a |
y |
a |
n.val |
a |
d |
a |
D |
a |
Q |
a |
X.mu.re |
a three-dimensional numeric array containing the levels of any true positive rate random effect included in the model. Only relevant when true positive rate random effects are specified in |
X.omega.re |
a three-dimensional numeric array containing the levels of any false positive rate random effect included in the model. Only relevant when false positive rate random effects are specified in |
X.re |
a numeric matrix containing the levels of any occurrence random effect included in the model. Only relevant when occurrence random effects are specified in |
gamma.star |
a numeric vector that contains the simulated true positive rate random effects for each given level of the random effects included in the true positive rate portion of the observation model. Only relevant when true positive rate random effects are included in the model. |
delta.star |
a numeric vector that contains the simulated false positive rate random effects for each given level of the random effects included in the false positive rate portion of the observation model. Only relevant when false positive rate random effects are included in the model. |
beta.star |
a numeric vector that contains the simulated occurrence random effects for each given level of the random effects included in the occurrence model. Only relevant when occurrence random effects are included in the model. |
Jeffrey W. Doser jwdoser@ncsu.edu
Chambert, T., Waddle, J. H., Miller, D. A., Walls, S. C., & Nichols, J. D. (2018). A new framework for analysing automated acoustic species detection data: Occupancy estimation and optimization of recordings postāprocessing. Methods in Ecology and Evolution, 9(3), 560-570.
set.seed(9928)
J.x <- 10
J.y <- 10
n.rep <- rep(4, J.x * J.y)
beta <- c(0.5, -0.15)
gamma <- c(2, 0.4)
delta <- c(1, -0.8)
phi <- 3 / .6
sigma.sq <- 2
psi.RE <- list(levels = 10,
sigma.sq.psi = 1.2)
mu.RE <- list(levels = 15,
sigma.sq.mu = 0.8)
omega.RE <- list(levels = 11,
sigma.sq.omega = 1.2)
prop.val <- 0.05
dat <- simFPOcc(J.x = J.x, J.y = J.y, n.rep = n.rep, beta = beta, gamma = gamma,
delta = delta, psi.RE = psi.RE, mu.RE = mu.RE, omega.RE = omega.RE,
sp = TRUE, sigma.sq = sigma.sq, phi = phi, cov.model = "exponential",
prop.val = prop.val, family = "Poisson")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.