Hello,
We are wanting to estimate annual survival for juvenile and adult prairie dogs over a six year period but are having some issues obtaining the desired output when modeling age transitions in a robust model in RMark.
We have 6 years of mark-recapture data. Within each year animals are trapped for 9 days. Upon first capture each individual is identified as a juvenile (pup of the year, <1) or adult (specific age is unknown, 1+). As seen in the script below we have binned age from 0-1 for juveniles and from 1-5 for adults. Using this method our top model includes time:plot+age+sex which gives us annual survival estimates for male and female juveniles (per plot). For adults in each plot this model gives us an a separate estimate for each age in each year.
Rather than having a separate estimate for each of the "adult age classes" what we would like is a single annual survival estimate for all adults (age 1-5 combined). We are just wondering if there is an easy way to bin adults all together to just obtain one annual survival estimate for adults … or do we just have to average the output we have?
Any advice would be hugely appreciated and we apologize if we have over looked something simple…
Thanks so much,
T&T
Sample of Script:
Survival_Age_Core=import.chdata("C:/tara local data/RMark YAY Files/Interior/Annual_Survival_Age_Core.txt",
field.types=c("f","f","f","f"))
summary(Survival_Age_Core)
Survival_Age_Core.process=process.data(Survival_Age_Core,begin.time=2007,groups=c
("plot","Sex","age"),initial.age=c(1,0),age.var=3,
model="Robust",time.intervals=c(0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0))
Survival_Age_Core.ddl=make.design.data(Survival_Age_Core.process)
Survival_Age_Core.ddl=add.design.data(Survival_Age_Core.process,Survival_Age_Core.ddl,
"S","age",bins=c(0,1,5),right=FALSE,name="JA")
Survival_Age_Core.ddl
Survival_Age_Core_GammasPCTimeSexColonyS.models=function()
{
S.One=list(formula=~-1+time:plot+Sex+age)
Sample OutPut for the female adults in the first plot "gEC-01":
Real Function Parameters of { S(~time:plot + Sex + age)Gamma''(~1)Gamma'()p(~session:time + plot + c)c()N(~-1 + group:session) }
95% Confidence Interval
Parameter Estimate Standard Error Lower Upper
------------------------- -------------- -------------- -------------- --------------
1:S gEC-01FemaleAdult 0.3847042 0.0753165 0.2510030 0.5384274
2:S gEC-01FemaleAdult 0.8044735 0.0893442 0.5747384 0.9260661
3:S gEC-01FemaleAdult 0.5931664 0.0917264 0.4090411 0.7543728
4:S gEC-01FemaleAdult 0.6834327 0.1405612 0.3766498 0.8852361
5:S gEC-01FemaleAdult 0.4341965 0.2145278 0.1217147 0.8095044
6:S gEC-01FemaleAdult 0.8668798 0.0641666 0.6865004 0.9508971
7:S gEC-01FemaleAdult 0.6109438 0.0717103 0.4650469 0.7393519
8:S gEC-01FemaleAdult 0.8046907 0.0819940 0.5970814 0.9197111
9:S gEC-01FemaleAdult 0.2910371 0.1175448 0.1184776 0.5563155
10:S gEC-01FemaleAdult 0.7130896 0.0586221 0.5863356 0.8133667
11:S gEC-01FemaleAdult 0.8160909 0.0727763 0.6317401 0.9198624
12:S gEC-01FemaleAdult 0.4392833 0.0987200 0.2631578 0.6321561
13:S gEC-01FemaleAdult 0.8753637 0.0510995 0.7371574 0.9462027
14:S gEC-01FemaleAdult 0.4576367 0.0794637 0.3105904 0.6124540
15:S gEC-01FemaleAdult 0.5718236 0.0791401 0.4147809 0.7156177
We are interpreting the above as
1: = survival from yr1 to yr2 of those first captured in yr 1 (so 1 yr olds)
2: = survival from yr2 to yr3 of those first capture in yr 2 (so 1 yr olds)
3: = survival from yr2 to yr3 of those first captured in yr 1 (so 2 yr olds)
4: = survival from yr3 to yr4 of those first capture in yr 3 (so 1 yr olds)
5: = survival from yr3 to yr4 of those first captured in yr 2 (so 2 yr olds)
6: = survival from yr3 to yr4 of those first captured in yr 1 (so 3 yr olds)
...
So can we somehow group the adult age classes to just get 5 estimates (one for each year) rather than 15!
Thanks