Dear all,
I'm new to RMark, and this is likely to be a fairly trivial question:
I'd like to use RMark to estimate the abundance of an animal population, and wish to compare the 8 CMR models of Otis et al. (1978): M0, Mb, Mt, Mh, Mbh, Mth, Mbt, Mbth.
So far, I could figure out the Rcodes for the first 6 full-likelihood models:
# Defining parameter models
pdotshared=list(formula=~1,share=TRUE)
ptimeshared=list(formula=~time,share=TRUE)
ptime.c=list(formula=~time+c,share=TRUE)
pdotmixture=list(formula=~mixture,share=TRUE)
pmixture=list(formula=~mixture)
cmixture=list(formula=~mixture)
ptimemixtureshared=list(formula=~time+mixture,share=TRUE)
# Capture Closed models
M0=mark(mydata,model="Closed", model.parameters=list(p=pdotshared))
Mb=mark(mydata,model="Closed")
Mt=mark(mydata,model="Closed", model.parameters=list(p=ptimeshared))
# Heterogeneity models
Mh=mark(mydata,model="FullHet",model.parameters=list(p=pdotmixture))
Mbh=mark(mydata,model="FullHet",model.parameters=list(p=pmixture,c=cmixture))
Mth=mark(mydata,model="FullHet",model.parameters=list(p=ptimemixtureshared),adjust=TRUE)
Are they correct?
Further, I could not figure out the codes for the last 2 models (i.e. Mbt and Mbth).
Any help would be much appreciated,
Thanks a lot in advance!
Luca