Hope it is okay to tag onto this post. I have capture histories from 1988-2008 and 2012-2018. There was a gap in data collection (2009, 2010 and 2011). I am running CJS models including TSM.
I have a few doubts,
1) When I click to see the table after importing my dataset, the number of males and females are correct. However, the number of males and females are equal in the summary. Are my codes for grouping sex wrong?
2) TSM bins - I want to account for transients in my models. Initially my bins were set as (0,1,30). After running the models, my last survival estimate I derived was for 2017. Am I not supposed to get an estimate for 2018 as well?
3) TSM bins - Then I replace 30 to 28 as I have 28 occasions (1988-2018 with a 4 year gap). However, this led to 2 NA's in ageclass. I don't fully understand how RMark treats the 4 year gap.
These are the first lines of my code,
- Code: Select all
#insert sex data, convert, and check first 5 lines
winter.sex=convert.inp("~/Desktop/RMark/MF dataset 1988-2018w2012/MF_D1D2D3_1988-2018.inp",
group.df = data.frame(sex=c("Female","Male")))
# Check first and last few records
head(winter.sex)
tail(winter.sex)
#process data - sex intervals are 1 except 21st when there was a 4 year gap (interval)
winter.sex.process=process.data(winter.sex,model="CJS",begin.time=1988,
time.intervals=c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,1), groups="sex")
#make design data
winter.sex.ddl=make.design.data(winter.sex.process)
summary(winter.sex.ddl$Phi)
# Add design data for age class (ageclass)
winter.sex.ddl=add.design.data(winter.sex.process,winter.sex.ddl,parameter="Phi",type="age",
bins=c(0,1,28),name="ageclass",right=FALSE,replace = TRUE)
winter.sex.ddl$Phi
summary(winter.sex.ddl$Phi)
Any help would be great
