Beatriz Martín wrote:I known the pages you recommend me. Anyway, thank you very much.
I think I have solved the problem in this way: I have considered all animals as marked in the first year of the study and I have codified marking year like a dummy variable to make groups and to look for differences between them. In this way, I can explore age effect and year effect at the same time.
Beatriz.
Hi Beatriz,
If I understand your approach correctly, you are ignoring the staggered entry form of your data by replacing “00s” with “10s” in time intervals preceding the initial marking intervals. If so, this inflates the number of animals at risk in those time intervals, which will inflate their survival estimates (unless no animals died within those intervals).
As an alternative, you might try splitting the encounter histories based on age group, such as 1-year old animals vs. 2-year old and older animals. For example, say you initially marked animal #1 as a 1-year old during year 3 and it died during year 5, and you initially marked animal #2 as a 3-year old during year 4 and it lived to the end of the study (year 9). Here are the typical encounter histories:
/* #1 */ 000010101100000000 1;
/* #2 */ 000000101010101010 1;
Here are the split encounter histories with a group covariate added:
/* #1a */ 000010000000000000 1 0;
/* #1b */ 000000101100000000 1 1;
/* #2 */ 000000101010101010 1 1;
where the group covariate is 0 = 1-year old and 1 = 2-year old and older. Thus, in this example, you would only be splitting those histories where the marked animal was initially marked as a 1-year old. Note that the number of animals at risk for each time interval has not changed. You can do the same for data following the known-fate format. First, here are the data combined into a single group:
known fate group=1;
0 0;
0 0;
1 0;
2 0;
2 1;
1 0;
1 0;
1 0;
1 0;
and then split into 2 groups (age categories), where group 1 = 1-year old and group 2 = 2-year old and older:
known fate group=1;
0 0;
0 0;
1 0;
0 0;
0 0;
0 0;
0 0;
0 0;
0 0;
known fate group=2;
0 0;
0 0;
0 0;
2 0;
2 1;
1 0;
1 0;
1 0;
1 0;
One further comment… If you only marked a few animals each year, you may not have enough marked animals (and hence, animals at risk and animals dying) to detect a difference in survival estimates between ages and across years. That is, you may have quite a few survival estimates of 1.0.
I hope this helps.
Regards,
Bill
P.S. FYI – you should probably be posting questions like this to the “statistics and analysis help” forum.