openp(X, dfreq=FALSE, m="up" , neg=TRUE, keep=rep(TRUE,2^I-1))
## S3 method for class 'openp':
print(x, \dots)
## S3 method for class 'openp':
plot(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.m
is set to "up" (the default), no constraint is fixed on the loglinear parameters. Therefore some loglinear akeep
is a logical vector of length $2^I-1$ taking the value TRUE for a history kept and FALSE for a history put aside. In this vector, the order of the captopenp
function, to print or to plot.trap.param
are estimations of the differences $logit$(capture probability after a capture)-$logit$(capture probability after a miss) for periods 3 to $I-1$. The last row gives a pooled estimate of these differences calculated under the assumption that they are homogenous.glm
function.openp
generates statistics to test the presence of a trap effect.
The plot.openp
function produces a scatterplot of the Pearson residuals of the model versus the frequencies of capture.
If the data matrix X
was obtained through the periodhist
function, the dfreq
argument must be set to TRUE.
Standard errors are calculated by linearization.closedp
, periodhist
, robustd.t
, robustd.0
data(duck)
op.m1 <- openp(duck, dfreq=TRUE)
plot(op.m1)
# To remove the capture history 111111.
keep2 <- apply(histpos.t(6),1,sum)!=6
op.m2 <- openp(duck, dfreq=TRUE, keep=keep2)
op.m2
# To remove the capture histories with 5 captures or more
keep3 <- apply(histpos.t(6),1,sum)<5
op.m3 <- openp(duck, dfreq=TRUE, keep=keep3)
op.m3
data(mvole)
mvole.op<-periodhist(mvole,vt=rep(5,6))
openp(mvole.op, dfreq=TRUE)
Run the code above in your browser using DataLab