Hi,
I'm working with a large dataset of exam results and am interested in exporting a table that summarizes these results. Each exam has an identification number, year and subject name. The year and subject name correspond to the exam ID, but each exam ID has hundreds of seperate observations for each student who took that exam. Each observation also features a unique student grade for that test.
I havn't been able to find a way to include all this data in one table (so far using table and groups command). Subject name and Year should be directly correlated to Exam ID, so this should only have one suitable value per exam, however I havn't been able to express this group correlation without displaying all the observations in the table. I also encountered difficulties with having the mean column refer to the average of grades within the exam ID and not average of IDs themselves.
Ideally, the table would look like this:
I would appreciate any help on the best way to approach these issues.
Many thanks.
I'm working with a large dataset of exam results and am interested in exporting a table that summarizes these results. Each exam has an identification number, year and subject name. The year and subject name correspond to the exam ID, but each exam ID has hundreds of seperate observations for each student who took that exam. Each observation also features a unique student grade for that test.
I havn't been able to find a way to include all this data in one table (so far using table and groups command). Subject name and Year should be directly correlated to Exam ID, so this should only have one suitable value per exam, however I havn't been able to express this group correlation without displaying all the observations in the table. I also encountered difficulties with having the mean column refer to the average of grades within the exam ID and not average of IDs themselves.
Ideally, the table would look like this:
Exam ID | Subject Name | Year | N | Mean Grade |
123 | Math | 1997 | 250 | 92 |
456 | English | 1999 | 300 | 94 |
... |
Many thanks.
Comment