oSCR.fit | R Documentation |
Flexible likelihood analysis of the multi-session sex-structured (MSSS) spatial capture-recapture models
oSCR.fit(
model = list(D ~ 1, p0 ~ 1, sig ~ 1, asu ~ 1),
scrFrame,
ssDF,
encmod = c("B", "P", "CLOG", "M")[1],
multicatch = FALSE,
theta = 2,
trimS = NULL,
DorN = c("D", "N")[1],
sexmod = c("constant", "session")[1],
costDF = NULL,
distmet = c("euc", "user", "ecol")[1],
directions = 8,
PROJ = NULL,
rsfDF = NULL,
RSF = FALSE,
telemetry.type = c("none", "ind", "dep")[1],
se = TRUE,
predict = FALSE,
start.vals = NULL,
getStarts = FALSE,
pxArea = 1,
plotit = F,
mycex = 1,
nlmgradtol = 1e-06,
nlmstepmax = 10,
nlmiterlim = 200,
smallslow = FALSE,
print.level = 0
)
model |
A list with 4 components describing the SCR model. The model
formulae desribe, in order, the density model ( |
scrFrame |
An oSCR-specific capture history data object (see make.scrFrame). |
ssDF |
An oSCR-specific state space data object (see make.ssDF). |
encmod |
Choice of encounter model to use. Choices are binomial ( |
multicatch |
Choose |
theta |
A non-negative power value detemining the shape of the exponential encounter model. |
trimS |
A non-negative value with the same distance units as |
DorN |
Specify whether to fit the Poisson ( |
sexmod |
Option to sex ratio as a single parameter fixed across sessions ( |
costDF |
An oSCR-specific cost surface data object. |
distmet |
The metric to use to measure pairwise distances. Options are |
directions |
Number of directions used in costDistance. |
PROJ |
A projection string specifying the coordinate reference system for use in the costDistance function. |
rsfDF |
An oSCR-specific resource selection function data object.
This can be the same object used for the |
RSF |
If |
telemetry.type |
Choice of telemetry integration, either |
se |
If |
predict |
If |
start.vals |
A vector of starting values in the order they appear in the model. Can provide a named vector to supply values only for specific parameters. |
getStarts |
If |
pxArea |
Not used yet. |
plotit |
Not used yet. |
mycex |
Not used. |
nlmgradtol |
The |
nlmstepmax |
The |
nlmiterlim |
The |
smallslow |
Not used yet. |
print.level |
The |
#Load the 'beardata'
library("oSCR")
data(beardata)
tdf<- cbind(1:38, beardata$trapmat, matrix(1, nrow=38, ncol=8))
edf<- beardata$edf
edf[,1]<- 1
data<- data2oscr(edf, sess.col = 1, id.col = 2, occ.col = 3, trap.col = 4,
sex.col = NULL, tdf = list(tdf), K = c(8), ntraps = c(38),
remove.zeros = TRUE, remove.extracaps = TRUE, sex.nacode = NULL,
tdf.sep = "/")
scrFrame <- make.scrFrame(caphist=data$y3d, traps=data$traplocs, trapCovs=NULL ,
trapOperation=data$trapopp)
sf <- data$scrFrame
ssDF <- make.ssDF(sf, buffer=3, res = 0.5)
#fit the NULL model:
m0 <- oSCR.fit(Model=list(D~1,p0~1,sig~1), scrFrame=sf, ssDF=ssDF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.