Hi everyone,
I have a population of juveniles and adults, and both age-classes show transience (the population is thought to have high adult survival and low juvenile recruitment).  I would like to fit a TSM model to what is already a two age-class model. I have a total of 6 occasions and after two occasions juveniles become adults. I would like a survival estimate for each occasion.  I've set my PIMs as 
Juv
1 6 10 11 12
   2  7  11 12
       3   8  12
            4   9
                 5
Adult
13 18 19 20 21
     14 19 20 21
          15 20 21    
              16 21
                  21 
Unfortunately I'm stuck at the design matrix. I've tried to set it similiar to that shown in section 8.1.2 of the guide. I think I may have the adult portion of the matrix correct but I'm having trouble with the juveniles.  Can anyone suggest where I'm going wrong? Any comments would be much appreciated.
Int  Age marked	B4	B5	B6   B7    Parm
1	1	1	0	0	0	0	1
1	1	1	0	0	0	0	2
1	1	1	0	0	0	0	3
1	1	1	0	0	0	0	4
1	1	1	0	0	0	0	5
1	1	0	0	0	0	0	6
1	1	0	0	0	0	0	7
1	1	0	0	0	0	0	8
1	1	0	0	0	0	0	9
1	1	0	0	0	0	0	10
1	1	0	0	0	0	0	11
1	1	0	0	0	0	0	12
1	0	1	1	0	0	0	13
1	0	1	0	1	0	0	14
1	0	1	0	0	1	0	15
1	0	1	0	0	0	1	16
1	0	1	0	0	0	0	17
1	0	0	0	1	0	0	18
1	0	0	0	0	1	0	19
1	0	0	0	0	0	1	20
1	0	0	0	0	0	0	21