- Code: Select all
#binning for the S parameter
band.ddl=add.design.data(data = band.process,
ddl = band.ddl,
parameter="S",
type = "age",
bins = c(0,1,11), #0 and 1+
right = FALSE, #bin intervals are open on the right and open on the left
name = "age",
replace = TRUE)
# do the same to the p parameter
band.ddl=add.design.data(data = band.process,
ddl = band.ddl,
parameter="p",
type = "age",
bins = c(0,1,11),
right = FALSE,
name = "age",
replace = TRUE)
I then ran a model { S(~time * fed + sex + age + site)p(~age)r(~1)F(~1) } where both S and p could vary with age. I found that the beta estimate CIs for p [-859, 860] and F [-1912,1948] are huge and there is only 1 real estimate for p for adults, whereas I would expect another also for juveniles. When trying different models, by varying which parameters are allowed to vary, it seems like F has huge CIs for every one, but p has huge CIs when it is allowed to vary by age. The example on the website where I found the code to change binning allowed S and F to vary by age and the results look normal, but when I instead allowed p to vary by age, the same thing occurred (large beta CIs and only 1 real estimate for p, although F looked fine). For F maybe the reason is that F essentially equals 1? For p though maybe this has something to do with p occurring at the time of the sampling occasion, while the other parameters technically occur between sampling occasions? Maybe there is some issue with exactly when the individuals change over from juvenile to adult? Or perhaps I am missing something else?
I’m hoping you can recreate my issue with the LD1 example dataset. I apologize if this is not an RMark-specific question. Thanks in advance!