rposbern(n, nTimePts = 5, pvars = length(xcoeff), xcoeff = c(-2, 1, 2),
cap.effect = -1, link = "logit", is.popn = FALSE, earg.link = FALSE)
dposbern(x, prob, prob0 = prob, log = FALSE)posbernoulli.b
and posbernoulli.t.is.popn.TRUE then argument n is the population
size and what is returned may have substantially less
rows than n.
That is, if an animal has at least one one in its sequence then
it is returned, else thax1, x2, ...,
where the first is an intercept, and the others are
independent standard runif<x1, x2, ...,
and the first is for the intercept.
The length of xcoeff must be at least pvars.CommonVGAMffArguments.y1, y2, ...)
for the response.
Some indicator columns are also included
(those starting with ch are for previous capture history,
and those starting with z are zero),
and these are useful for the xij argument.
The function dposbern gives the density,
posbernoulli.b.
The denominator is equally shared among the elements of
the matrix x.
posbernoulli.b,
posbernoulli.t,
posbernoulli.tb.set.seed(123); rposbern(n = 10)
attributes(rposbern(n = 10))Run the code above in your browser using DataLab