You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following R4Econ, generate function for Panel Long Attendance Roster to Wide.
There are $N$ students in class, but only a subset of them attend class each day. If student $id_i$ is in class on day $Q$, the teacher records on a sheet the date and the student ID. So if the student has been in class 10 times, the teacher has ten rows of recorded data for the student with two columns: column one is the student ID, and column two is the date on which the student was in class. Suppose there were 50 students, who on average attended exactly 10 classes each during the semester, this means we have $10 \cdot 50$ rows of data, with differing numbers of rows for each student.
Now we want to generate a new dataframe, where each row is a date, and each column is a student. The values in the new dataframe shows, at the $Q^{th}$ day, how many classes student $i$ has attended so far.
The text was updated successfully, but these errors were encountered:
Following R4Econ, generate function for Panel Long Attendance Roster to Wide.
There are$N$ students in class, but only a subset of them attend class each day. If student $id_i$ is in class on day $Q$ , the teacher records on a sheet the date and the student ID. So if the student has been in class 10 times, the teacher has ten rows of recorded data for the student with two columns: column one is the student ID, and column two is the date on which the student was in class. Suppose there were 50 students, who on average attended exactly 10 classes each during the semester, this means we have $10 \cdot 50$ rows of data, with differing numbers of rows for each student.
Now we want to generate a new dataframe, where each row is a date, and each column is a student. The values in the new dataframe shows, at the$Q^{th}$ day, how many classes student $i$ has attended so far.
The text was updated successfully, but these errors were encountered: