robustd.t
and robustd.0
fit the model on different response variable.
robustd.t
uses the frequencies of the observable capture histories in terms of capture success or failure for each capture occasions of each primary period (generated by histfreq.t
).
robustd.0
uses the frequencies of the observable capture histories in terms of number of captures per primary period (generated by histfreq.0
).robustd.t(X, dfreq = FALSE, vt, vm = "M0", vh = list("Chao"),
va = 2, neg = TRUE)
robustd.0(X, dfreq = FALSE, vt, vm = "M0", vh = list("Chao"),
va = 2, neg = TRUE)
## S3 method for class 'robustd':
print(x, \dots)
X
. By default, it is set to FALSE, which means that X
has one row per unit. If it is set to TRUE, then the matrix X
contains frequencies in its last column.vm
can be "none"=no model, "M0"=M0 model, "Mt"=Mt model, "Mh"=Mh model or "Mth"=Mth model for robustd.t
. For robustd.0
, models vht
can be "Chao", "Poisson", "Darroch" or any numerical R
function created beva
consists of a single number, this number is used for all the periods with a Poisson model. The default vrobustd.t
or the robustd.0
function, to print.glm
function.robustd.t
. Models with a large sum(vt) are hard to fit with robustd.t
. robustd.0
uses a more parsimonious coding for the capture histories and can fit larger models.
Standard errors are calculated by linearization.closedp
, openp
data(mvole)
# The mvole data set contains a total of 30 capture occasions (the
# tenth capture occasion doesn't have any new capture and is taken
# out of the analysis). This number being large, we can only use
# the robustd.0 function to fit a robust design model.
robustd.0(mvole[,-10],vt=c(5,4,rep(5,4)),vm="Mh",vh="Poisson",va=1.5)
# Not run:
# robustd.t(mvole[,-10],vt=c(5,4,rep(5,4)),vm="Mh",vh="Poisson",va=1.5)
# should fail
# Considering only the first 3 periods of the data set, we can use the
# robustd.t function to fit a model with a temporal effect.
robustd.t(mvole[,c(1:9,11:15)],vt=c(5,4,5),vm="Mth",vh="Poisson",va=1.5)
Run the code above in your browser using DataLab