Miguel Lacerda
YaBB Newbies
Offline
Feed your monkey!
Posts: 36
Natl Univ of Ireland, Galway
Gender:
|
Hi Sergei,
Would you mind taking a look at the attached code please? I have set up a model with two rate matrices; the first is called SubsMatrixM1 and applies to branches leading to leaf nodes, whilst the other is called SubsMatrixM2 and applies to branches leading to ancestral nodes. In this code, I have two parameters which I am estimating, w0 and p0 which should be around 0.1 and 0.5 respectively when SubsMatrixM1 = SubsMatrixM2 (I simulated the attached data as such).
In the attached code, I have made SubsMatrixM1 and SubsMatrixM2 identical (or at least I think I have!!) which is the same as just having one substitution process along all branches. The problem is that setting up my models as:
Model M1 = (SubsMatrixM1, EFV, 1); Model M2 = (SubsMatrixM2, EFV, 1);
gives me incorrect values for the parameters I am estimating, whereas:
Model M1 = (SubsMatrixM1, EFV, 1); Model M2 = (SubsMatrixM1, EFV, 1); /* both use SubsMatrixM1 */
OR:
Model M1 = (SubsMatrixM2, EFV, 1); Model M2 = (SubsMatrixM2, EFV, 1); /* both use SubsMatrixM2 */
give me the same and correct values for the parameters! How is this possible?
Thanks so much for your help!
Miguel
|