prldb wrote:I have a CJS model for which survival depends on a group with three levels and one time-related covariate and recapture p has a sex*time dependence. I am looking at reduced models for survival so in the design matrix (DM) I have used an identity matrix for the recapture dependence since it will be fixed and for the survival part of the DM I used the format illustrated on p. 6-54 of the MARK book (11'th edition).
MARK returns the correct parameter count and all looks reasonable for the rest of the output. All still looks good when I remove the interaction terms to obtain an additive model for survival (i.e., remove both the interaction columns in the illustration on p. 6-54). Playing around with MARK, I altered the DM for survival by setting the 1's in the intercept column to 0's for those rows in which there is a 1 in one of the columns coding for the two non-reference levels of the three-level group. Doesn't this simply alter the values of B1, B2, and B3 giving a different parametrizatrion of the same model?
<snip...>
10100 39 44 30;
10001 16 2 18;
11000 67 35 50;
10010 18 4 16;
10000 247 355 298;
11110 11 6 2;
11101 10 1 7;
10101 13 1 9;
11001 16 0 8;
11011 4 0 5;
11100 23 25 22;
11111 3 0 3;
10110 20 12 12;
11010 8 5 13;
10011 4 5 4;
10111 1 5 3;
01000 204 290 248;
01100 111 123 97;
01010 34 21 42;
01101 37 9 29;
01001 26 5 35;
01110 47 37 21;
01111 18 11 11;
01011 23 4 17;
00110 105 95 93;
00100 284 360 293;
00101 79 27 80;
00111 32 18 34;
00010 380 435 362;
00011 120 65 138;
1 1 0 1 1 0
1 1 0 3 3 0
1 1 0 4 4 0
1 1 0 2 2 0
1 0 1 1 0 1
1 0 1 3 0 3
1 0 1 4 0 4
1 0 1 2 0 2
1 0 0 1 0 0
1 0 0 3 0 0
1 0 0 4 0 0
1 0 0 2 0 0
1 1 0 1 1 0
1 1 0 3 3 0
1 1 0 4 4 0
1 1 0 2 2 0
1 0 0 1 0 0
1 0 0 3 0 0
1 0 0 4 0 0
1 0 0 2 0 0
1 0 1 1 0 1
1 0 1 3 0 3
1 0 1 4 0 4
1 0 1 2 0 2
prldb wrote:My tampering with the DM is not biologically motivated but just experimenting with what I think are different parametrizations of the same model to test my understanding of DMs.
Mathematically, the DM on p. 6-52 (12th Ed.) (for the additive model without any interactions) amounts to phi's for the reference level of the group being given by the form B1+covariate (on the logit scale), phi's for the second level of the group given by the form B1+B2+covariate, and phi's for the third level of the group given by the form B1+B3 + covariate. Mathematically, can't one absorb B1 into each of B2 and B3 (in effect redefining what B2 and B3 mean). The correspondng DM would be like that on p. 6-52 but the 1's in the B1 column for rows refering to phi's in levels two and three of the group would be set to zero. Isn't this just a slightly more complicated analogue (in the presence of the covariate) of the different DMs described on p. 6-8? There one has a 4-level group (and no time) and one can use a DM with a common intercept across levels or an identity DM. Isn't what I'm describing in effect an identity DM for the group part of the dependence in survival? So shouldn't I get the same deviance rather than a deviance some 50 units higher? Am I overlooking some way in which this simple change to the DM actually alters the model rather than just the parametrization? Or is there something about this parametrization that leads MARK to return a false result?
I am aware from the book by Amstrup et al. of the other issue you mention....
prldb wrote:Okay, here is the DM for survival from p. 6-52 of the MARK book with the interaction columns removed to give an additive model, where B4 is the column of covariate values. My DM1 is analogous to this DM (for recapture p the structure is sex*time and I use the identity matrix for that part of the DM as it remains fixed; the 3-level group in the structure for survival is not related to sex)
B1 B2 B3 B4
1 0 0 1.1
1 0 0 0.2
1 0 0 3.4
1 0 0 4.1
1 0 1 1.1
1 0 1 0.2
1 0 1 3.4
1 0 1 4.1
1 1 0 1.1
1 1 0 0.2
1 1 0 3.4
1 1 0 4.1
My modified design matrix for survival is DM2:
B1 B2 B3 B4
1 0 0 1.1
1 0 0 0.2
1 0 0 3.4
1 0 0 4.1
0 0 1 1.1
0 0 1 0.2
0 0 1 3.4
0 0 1 4.1
0 1 0 1.1
0 1 0 0.2
0 1 0 3.4
0 1 0 4.1
So all I did was set to 0 the 1's in column B1 for those rows in which either B2 or B3 was 1. I would think DM1 and DM2 are just two different paramerizations of the same model as all one has done is redefine what B2 and B3 will mean (as in the examples of alternative parameritzations on p. 6-8). Yet I get very different deviances.
1 0 0 1
1 0 0 3
1 0 0 4
1 0 0 2
1 0 1 1
1 0 1 3
1 0 1 4
1 0 1 2
1 1 0 1
1 1 0 3
1 1 0 4
1 1 0 2
1:Phi 0.6851846 0.0258639 0.6324384 0.7335505
2:Phi 0.8123874 0.0172813 0.7761493 0.8439386
3:Phi 0.8593070 0.0184339 0.8191645 0.8917165
4:Phi 0.7542946 0.0184393 0.7163942 0.7886246
5:Phi 0.4304806 0.0270593 0.3784299 0.4841144
6:Phi 0.6006095 0.0243111 0.5521505 0.6471756
7:Phi 0.6796042 0.0311524 0.6157472 0.7373753
8:Phi 0.5160089 0.0216414 0.4735784 0.5582098
9:Phi 0.6208545 0.0285790 0.5634596 0.6750551
10:Phi 0.7651406 0.0191922 0.7254667 0.8006565
11:Phi 0.8212766 0.0212161 0.7758629 0.8591591
12:Phi 0.6978593 0.0203946 0.6564568 0.7362767
1 0 0 1
1 0 0 3
1 0 0 4
1 0 0 2
0 0 1 1
0 0 1 3
0 0 1 4
0 0 1 2
0 1 0 1
0 1 0 3
0 1 0 4
0 1 0 2
1:Phi 0.6851843 0.0258639 0.6324381 0.7335503
2:Phi 0.8123876 0.0172813 0.7761495 0.8439388
3:Phi 0.8593073 0.0184339 0.8191648 0.8917168
4:Phi 0.7542947 0.0184393 0.7163942 0.7886246
5:Phi 0.4304803 0.0270593 0.3784296 0.4841142
6:Phi 0.6006099 0.0243111 0.5521508 0.6471761
7:Phi 0.6796048 0.0311525 0.6157477 0.7373760
8:Phi 0.5160089 0.0216414 0.4735784 0.5582098
9:Phi 0.6208540 0.0285791 0.5634589 0.6750547
10:Phi 0.7651407 0.0191922 0.7254668 0.8006566
11:Phi 0.8212769 0.0212161 0.7758632 0.8591594
12:Phi 0.6978591 0.0203946 0.6564565 0.7362766
prldb wrote: Many thanks. That confirms my understanding of how things should behave.
Users browsing this forum: No registered users and 4 guests