by mcmelnychuk » Sun Jan 20, 2013 6:57 pm
Hi Megan,
When I've used these models I used a slightly different formulation, below. The main difference is I just have a single distance covariate representing the length of each segment, and I achieve segment-specificity using only the time__:distance interactions, not separate distance covariates. Keep in mind I haven't done this in a multi-state model, so might be missing something in that regard.
-after using make.design.data(), I use merge.design.covariates(sh.ddl$Phi, df=survcovar, bygroup=T, bytime=T).
-survcovar is the result of read.csv("segment distances.csv"), where "segment distances.csv" is manually set up with columns: group, time, dist. The group names should be identical to those returned by make.design.data(), and time should match up with the appropriate segment.
-then I add dummy variables for the group:segment interactions. In my analyses I allowed for separate relationships of logit(Phi) vs. segment distance in river and ocean segments:
sh.ddl$Phi$river=0
sh.ddl$Phi$river[sh.ddl$Phi$time%in%1:3]=1
sh.ddl$Phi$ocean=0
sh.ddl$Phi$ocean[sh.ddl$Phi$time%in%4:6]=1
-Phi.pop.distance=list(formula=~ dist:river + dist:ocean + other covariates you want to include, remove.intercept=T)
So I use a single distance covariate, rather than separate covariates for each segment. I suspect both approaches can work.
In this example all groups shared the same migration route, but the way you coded it with time:pop dummy variables to represent particular segments for particular populations should work, as long as it allows for distance3 for pop A to differ from distance3 for pop B in your inputted covariate data (or wherever the particular segment was that physically differed for different populations).
One way to check that it's performing as intended is to run a model that has only distance as a survival covariate, nothing else like population, body length, etc. Then go through the estimated real Phi parameters and check that the Phi estimates for particular segments are the same for different populations when they should be (because the poupulations share the same physical segment of the migration and the same distance covariate value), and different for different populations in the segments where migration routes are not shared.
In terms of QAICc comparisons, your distance-based model likely has many fewer parameters than the segment-independent model. By constraining logit(Phi) to segment distance, you're saying that the slope is equal across all segments. There might be a happy medium between this and the segment-independent models. One model I've found that serves as a happy medium is to allow for indpendent Phi estimates for each release group in their first segment after release, and thereafter in remaining segments have logit(Phi) constrained to distance. The reason for this is that release groups may differ greatly in survival immediately after release due to different vulnerabilities to predation, especially if you're including wild and hatchery-reared populations in the same analysis (in which case you could also allow for separate survival-distance relationships between wild and hatchery groups, to allow for greater flexibility). After that initial mortality component, the relationship with distance segment may be more consistent for the remainder of the migration.
Hope this helps,
Mike