Dear Stata Community,
I have the following problem:
I have a panel data on the careers of students from a University. For each student I have the year of enrollment, the year of course (1st year, 2nd year, 3d year student), the identification for the exam held, the data in which the exam is taken with the grade and the corresponding number of credits, the degree course etc.
I want to keep observations for which I have the same exam (id_exam) in the same year course in all the years.
For example: I want to keep the exam with id=20 only if it is an exam of the first year (course year=1) both in the exam_year=2019 and the exam_year=2020.
How can I do?
I have the following problem:
I have a panel data on the careers of students from a University. For each student I have the year of enrollment, the year of course (1st year, 2nd year, 3d year student), the identification for the exam held, the data in which the exam is taken with the grade and the corresponding number of credits, the degree course etc.
I want to keep observations for which I have the same exam (id_exam) in the same year course in all the years.
For example: I want to keep the exam with id=20 only if it is an exam of the first year (course year=1) both in the exam_year=2019 and the exam_year=2020.
How can I do?

Comment