Description Usage Arguments Details Value References Examples
abun_oi
is used to calculate the maximum empirical likelihood estimator and the empirical likelihood ratio confidence interval of abundance by fitting one-inflated count regression model.
1 2 3 4 5 6 7 8 9 10 |
formula |
symbolic description of the model, see 'Details'. |
data |
data frame or list containing the variables in the model. If not found in data, the variables are taken from environment(formula). |
model |
character specification of |
dist |
character specification of count regression model family, |
K |
number specifying the number of capture occasions when |
ci |
logic. If TRUE, the empirical likelihood ratio conficence interval of abundance is calculated. |
level |
number specifying the nominal level of confidence interval of abundance. |
control |
list of control arguments in EM algorithm specified via |
If model = "zt"
, the formula
has the form y ~ x
where y
is the (numeric) vector representing the number of captures and x
is a series of terms which specifies a linear predictor in count regression model.
If model = "ztoi"
or model = "oizt"
, the formula
has the form y ~ x|z
where z
is a series of terms which specifies a linear predictor in one-inflated logistic regression model.
An abun_oi
object.
Liu, Y., Li, P., Liu, Y., and Zhang, R. (2021). Semiparametric empirical likelihood inference for abundance from one-inflated capture-recapture data. Biometrical Journal.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ### Estimation results for prinia data
### under zero-truncated binomial regression model without one-inflation
(pri_zt <- abun_oi(y ~ x, data = prinia, model = "zt",
dist = "binomial", K = 17))
### P-values of score tests for one-inflation
pri_st_ztoi <- scoretest_oi(pri_zt, model = "ztoi")
pri_st_oizt <- scoretest_oi(pri_zt, model = "oizt")
pnorm(pri_st_ztoi)
pnorm(pri_st_oizt)
### Under zero-truncated one-inflated binomial regression model
pri_ztoi <- abun_oi(y ~ x|1, data = prinia, model = "ztoi",
dist = "binomial", K = 17, ci = TRUE)
(pri_ztois <- summary(pri_ztoi, boot = 200))
### Maximum EL estimate of w
(w <- plogis(pri_ztois@eta))
### Under one-inflated zero-truncated binomial regression model
pri_oizt <- abun_oi(y ~ x|1, data = prinia, model = "oizt",
dist = "binomial", K = 17, ci = TRUE)
round(pri_oizt@N)
round(pri_oizt@ci)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.