I have longitudinal data (3 waves), with clustering in school classes (and in a few schools as the third level). Unfortunately, the data collectors made an error when assigning class IDs: for some school classes, the class ID changes from one measurement occasion to the next. I do not know which school classes this problem applies to…
I am planning to develop a procedure that identifies students who stay in one particular school class but have received a new class ID at a second measurement occasion -- and then give these students a single, common class ID, reflecting the actual clustering of the data over time. This should be possible since the problem applies to every student in the school class: whole groups of students should switch from a common class ID at one measurement occasion to a new, but still common class ID at the next measurement occasion. Since I am considering moving this form of data manipulation to Stata and have yet to develop a procedure, I thought I should ask here at Statalist.
This is probably not an unknown problem, and with Stata’s advanced capabilities in data manipulation of survey data, maybe functions are available to fix this problem?
I am planning to develop a procedure that identifies students who stay in one particular school class but have received a new class ID at a second measurement occasion -- and then give these students a single, common class ID, reflecting the actual clustering of the data over time. This should be possible since the problem applies to every student in the school class: whole groups of students should switch from a common class ID at one measurement occasion to a new, but still common class ID at the next measurement occasion. Since I am considering moving this form of data manipulation to Stata and have yet to develop a procedure, I thought I should ask here at Statalist.
This is probably not an unknown problem, and with Stata’s advanced capabilities in data manipulation of survey data, maybe functions are available to fix this problem?

Comment