Level 1 residuals merge error
Posted: Thu Jan 19, 2012 12:11 pm
When asking runmlwin to store the level 1 residuals (using the residuals command) from my repeated measures model I get the following error message:
merge: after merge, not all observations from master or matched
(merged result left in memory)
I then have a list of residuals with a corresponding _residualid that does not always match up with the correct observation in my dataset and there are many duplicates of the residual_ids (that is 3609 residuals including duplicates when there are only 2301 observations). I am assuming that the _residualid matches to the true order of my original dataset, and a quick analysis by eye of some individuals and there fitted lines seems to back this up.
I have been getting round the problem by creating a dataset of only the residuals and the _residualid, then removing all the duplicates. At that point I then merge these residuals back to the original dataset with the _residualid and the ordered original dataset as the merging variable. Then I create my different residual plots like q-q plots, etc...
Is there a simpler way of dealing with this problem?
merge: after merge, not all observations from master or matched
(merged result left in memory)
I then have a list of residuals with a corresponding _residualid that does not always match up with the correct observation in my dataset and there are many duplicates of the residual_ids (that is 3609 residuals including duplicates when there are only 2301 observations). I am assuming that the _residualid matches to the true order of my original dataset, and a quick analysis by eye of some individuals and there fitted lines seems to back this up.
I have been getting round the problem by creating a dataset of only the residuals and the _residualid, then removing all the duplicates. At that point I then merge these residuals back to the original dataset with the _residualid and the ordered original dataset as the merging variable. Then I create my different residual plots like q-q plots, etc...
Is there a simpler way of dealing with this problem?