I am having some trouble understanding why I am getting some particular results. I have found various iterations of what I am trying to do on the forum before, but not the issue that I am running into. Apologies if there is a relevant post that answers this that I did not find.
I have a 27 year dataset for a birds that we survey (see snippet of data below). If the bird was seen/banded as a nestling, it is marked as a juvenile, if banded as an adult, then it is marked as older. Juveniles that are seen the following year are then considered adults/older. My main questions of interest are pretty standard: does survival vary between first years and adults, and does survival vary over time?
Here is where I am confused. When I run the age model (with detection varying with time), I get first year survival as constant (as expected). However, while the survival for 1+ years (adults) is overall higher as expected, it seems to change with the age of the adult, so clearly I have set something up incorrectly. I suspect it is something very simple, but I cannot for the life of me figure out what it is. Any help would be appreciated. Thank you!

- Code: Select all
su.pr <- process.data(surv, model = "CJS",
age.var = 1,
initial.ages = c(0,1),
groups = ("age"))
su.ddl = make.design.data(su.pr,
parameters = list(Phi = list(age.bins = c(0,1,27)),
p = list(age.bins = c(1,2,27))),
right = FALSE)
run.su = function(){
Phi.dot = list(formula = ~ 1)
Phi.age = list(formula = ~ age)
Phi.time = list(formula = ~ -1 + time)
Phi.age.time = list(formula = ~ age + time)
p.dot = list(formula = ~ 1)
p.time = list(formula = ~ -1 + time)
su.model.list = create.model.list("CJS")
su.results = mark.wrapper(su.model.list,
data = su.pr, ddl = su.ddl)
return(su.results)
}
su.res <- run.su()
su.res
