Hi,
I want to see the relationship between having housing and their grades for a group of students. The issue is that these students study in different fields and the grade scale is not the same across different fields and even within fields.
Let's say I have the dataset below: (id=identifier, totalpoints=grade, housing=binary variable for access to housing which is missing in most cases)
Note that each course could have more than one exam date.
I was wondering what should be my outcome variable? Should I standardize the grade variable first (using the zscore command) and then use it as an outcome? Can I use "difference from course average" as an outcome?
Best
I want to see the relationship between having housing and their grades for a group of students. The issue is that these students study in different fields and the grade scale is not the same across different fields and even within fields.
Let's say I have the dataset below: (id=identifier, totalpoints=grade, housing=binary variable for access to housing which is missing in most cases)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float totalpoints str31 Course_code str10 exam_date float(id housing) 15 "EEMN21" "2022-10-27" 1 . 12 "EEMN21" "2022-10-27" 2 1 23 "EEMN21" "2022-10-27" 3 0 25 "EEMN21" "2022-10-27" 4 . 20 "EEMN21" "2022-10-27" 5 . 15 "EEMN21" "2022-10-27" 6 . 21.5 "EEMN21" "2022-10-27" 7 . 21 "EEMN21" "2022-10-27" 8 . 26.5 "EEMN21" "2022-10-27" 9 . 5 "BUSN47" "2023-03-10" 10 . 8 "BUSN47" "2023-03-10" 11 . 5 "BUSN47" "2023-03-10" 12 . 3 "BUSN47" "2023-03-10" 13 . 6 "BUSN47" "2023-03-03" 14 1 5 "BUSN47" "2023-03-10" 15 . 5 "BUSN47" "2023-03-10" 16 . 4 "BUSN47" "2023-03-10" 17 . 3 "BUSN47" "2023-03-03" 18 . 5 "BUSN47" "2023-03-03" 19 . 5 "BUSN47" "2023-03-03" 20 . 5 "BUSN47" "2023-03-03" 21 . 7 "BUSN47" "2023-03-03" 22 . 7 "BUSN47" "2023-03-10" 23 . 6 "BUSN47" "2023-03-10" 24 . 7 "BUSN47" "2023-03-10" 25 . 6 "BUSN47" "2023-03-10" 26 . 5 "BUSN47" "2023-03-10" 27 . 6 "BUSN47" "2023-03-10" 28 . 6 "BUSN47" "2023-03-10" 29 . 4 "BUSN47" "2023-03-10" 30 . 5 "BUSN47" "2023-03-10" 31 . 7 "BUSN47" "2023-03-03" 32 . 4 "BUSN47" "2023-03-03" 33 . 5 "BUSN47" "2023-03-03" 34 . 4 "BUSN47" "2023-03-10" 35 . 4 "BUSN47" "2023-03-10" 36 . 6 "BUSN47" "2023-03-10" 37 . 6 "BUSN47" "2023-03-10" 38 . 5 "BUSN47" "2023-03-10" 39 . 6 "BUSN47" "2023-03-10" 40 . 5 "BUSN47" "2023-03-10" 41 . 2 "BUSN47" "2023-03-10" 42 . 6 "BUSN47" "2023-03-10" 43 . 7 "BUSN47" "2023-03-10" 44 . 4 "BUSN47" "2023-03-10" 45 . 5 "BUSN47" "2023-03-10" 46 . 5 "BUSN47" "2023-03-10" 47 . 5 "BUSN47" "2023-03-10" 48 . 6 "BUSN47" "2023-03-10" 49 . 5 "BUSN47" "2023-03-10" 50 . 6 "BUSN47" "2023-03-10" 51 . 5 "BUSN47" "2023-03-10" 52 . 5 "BUSN47" "2023-03-10" 53 . 7 "BUSN47" "2023-03-10" 54 . 5 "BUSN47" "2023-03-10" 55 . 5 "BUSN47" "2023-03-10" 56 . 3 "BUSN47" "2023-03-10" 57 . 5 "BUSN47" "2023-03-10" 58 . 5 "BUSN47" "2023-03-10" 59 . 7 "BUSN47" "2023-03-10" 60 . end
Note that each course could have more than one exam date.
I was wondering what should be my outcome variable? Should I standardize the grade variable first (using the zscore command) and then use it as an outcome? Can I use "difference from course average" as an outcome?
Best
Comment