Skip to content
Quiz

Data Cleaning – Quiz 5

2 December 2022

Continuing from Quiz 4 (i.e. not reloading the Data Cleaning dataset), note that the student observation variables s1_stu_act_obs1 and s1_stu_act_obs2 take on values 1 through 6. Suppose that those values stood for the following: 1 = paying attention to teacher, 2 = working alone, 3 = working in group, 4 = talking to friend, 5 = other not on task, 6 = bathroom break. Label these values. Then create a new variable that counts the number of times that a student was ‘on-task’ across the two observations. ‘On-task’ is defined as paying attention to the teacher, working alone, or working in a group. Your new variable should have values 0, 1, or 2, since each student was observed twice. (The new variable should be missing if either or both observations are missing).