rqResSum_optim: Site-Sum Randomized Quantile Residuals

Description Usage Arguments Value

View source: R/rqRes.R

Description

Calculates Site-Sum Randomized-quantile residuals for a model fit with optim. As defined in Knape et al. 2018 and available for unmarked models in the nmixgof package.

Usage

1
rqResSum_optim(n_obs, K, p_est, lambda_est, show.warnings = FALSE)

Arguments

n_obs

a matrix of observed counts, with rows = sites and columns = replicates

K

maximum possible true mean abundance, N

p_est

estimated mean (across distances = 0 to W) detection probability

lambda_est

estimated lambda (mean abundance across sites) from fitted model

Value

a matrix of residuals with the same dimensions as the observations, n_obs.


philipshirk/nmmsims documentation built on Feb. 26, 2020, 11:27 a.m.