I’m working on a stage specific survival model for some sparrow data, comparing two species across multiple years including additional covariates. I came across Jeff Laake’s very helpful create.stage.var function posted 28 July 2009 (http://www.phidot.org/forum/viewtopic.php?f=21&t=1152) and, not finding much additional information in the help files, Gentle Intro, or on the forum, I find I need a little help.
Jeff provided the following mallard example, which ran perfectly.
data(mallard)
x=create.stage.var(mallard,"AgeDay1","Incubation",rep(1,90),10)
My question is regarding the cutoff value (i.e. the final “10” in the example). This cutoff assumes that time to hatching is invariant which is untrue for our data, and we’ve been able to account for it. Egg stage length (“incub” below) for us is the combination of laying (varies with clutch size) and incubation, expressed as incubation + (#eggs – 1), which I’ve already coded as a covariate, ‘hatchday’ included in the input file. This value ranges from 12 to 16 in our data. I would like to be able to use the variable ‘hatchday’ as the cutoff for each nest. I was able to do this previously in MARK with the GE() function.
Can someone suggest how I might make this work? I tried simply adding ‘hatchday’ as the cutoff value, but that didn’t seem to work. A look at summary(incub) showed that the value always calculated as “1”. I may not have asked correctly for such input:
stg <- create.stage.var(spar,"AgeDay1","Incub",rep(1,115),"Hatchday")
Thanks in advance for your suggestions.
Shane