Description Usage Arguments Details Examples
Fits GAM using regression splines for the density model. Does this
by creating spline basis functions (which are stored as covariates in a mask object)
and then calling function secr.fit
to operate on these.
1 2 |
capthist |
capture history, as for function |
model |
model list, as for function |
mask, |
as for function |
... |
other arguments to |
Returns an object of class c("secrgam","secr"), the latter being same class of
object as is returned by secr.fit
of package secr
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
data(Boland.leopards1)
model = list(D ~ s(alt, k = 4), g0 ~ 1, sigma ~ 1)
fit = secrgam.fit_beta(capthist = Boland.CH1, model = model, mask = Boland.mask1, trace = FALSE)
fit # look at fit results
# plot fitted surface:
plot(fit, asp=1)
plot(traps(Boland.CH1), add = TRUE)
# plot smooths:
plot(fit, type = "smooth")
# get abundance and density estimates
region.ND(fit)
# session-level smooths
data(ovenbird)
ovenfit = secrgam.fit(ovenCH, model = D ~ s(Session,k=3), mask = ovenmask, trace = FALSE)
plot(ovenfit, type = "smooth")
region.ND(ovenfit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.