TSM POPAN model

Hi, I've added tsm within a POPAN model to account for transience. This is based on guidance from various other posts in here (I don't have the links to hand).
When I check the output of the phi~ tsm+time model it is exactly the same as the phi~time model without tsm, which makes me think I've done something wrong. This worked fine for the CJS, and I've seen a couple of papers that have used a similar method for POPAN.
Could someone please advise how I could correctly add tsm to the square PIMS in a POPAN?
Thanks so much!
When I check the output of the phi~ tsm+time model it is exactly the same as the phi~time model without tsm, which makes me think I've done something wrong. This worked fine for the CJS, and I've seen a couple of papers that have used a similar method for POPAN.
Could someone please advise how I could correctly add tsm to the square PIMS in a POPAN?
- Code: Select all
# add time-since-marking (as a two-age class) to ddl
capt.ddl$Phi$tsm = 1
capt.ddl$Phi$tsm[capt.ddl$Phi$age==0] = 0
#run for phi
Phi.time.tsm=list(formula=~time+tsm)
Output for Phi~tsm+time:
2014 2015 2016 2017 2018
0.6931365 0.862137 0.5720489 0.8306271 0.6485813
Output for Phi~time:
2014 2015 2016 2017 2018
0.6931331 0.8621404 0.57205 0.8306223 0.6485844
Thanks so much!