I merged Student data (say enrollment, number of days present) with Teacher data set. In the student data, the student id and school year are unique. In the teacher data set, same student id appears multiple times as the student can take several classes with same teacher in a given year. So the in the merged data, same information appears in many rows for a given student. Say, Student A is present for 60 days in 2023, it appears in 6 lines in the merged data set. I tried reducing the merged data set to teacher level by creating ids for teacher. I tried collapse command, but there are many string variables and it removes all other variables. How do I fix this? I want to eventually use those presence variable in analysis and it can produce wrong results, thanks!
-
Login or Register
- Log in with
Comment