Hello! I am trying to count the number of people who have scores over consecutive time periods for different assessment areas. I've searched through the forum but didn't get an answer specific to my needs so I am hoping to get some direction here.
I will try to be as clear as possible in my explanation.
So my data looks like this :
dummyid - this is the id for identifying observations
whichreading - this indicates the time points that I have. It could go up to 9 readings
assess1 to assess3 - these are the assessment areas.
So for the first line, this would mean that person 12345 got a score of 9 for assessment area 1, missing score for assessment area2 and missing score for assessment area 3 and all of these scores are for the third reading.
I did duplicates report systemid and that gave me the number of duplicate entries that a person has so in essence, that told me that x number of people had entries for 4 time points/readings for example. However, it could not tell me how many have scores for the first and second reading alone, or how many have scores for first second and third reading alone, or how many have scores first second third and fourth reading alone and so on. I will need to have these counts for each assessment area.
I also tried crosstabulating whichreading (time variable) with each assessment area but that only showed me the number of people with a score of 1 (or 2 or 3) for each reading.
I am clueless on how to proceed so I would be grateful if someone could help. Thank you!
I will try to be as clear as possible in my explanation.
So my data looks like this :
dummyid - this is the id for identifying observations
whichreading - this indicates the time points that I have. It could go up to 9 readings
assess1 to assess3 - these are the assessment areas.
So for the first line, this would mean that person 12345 got a score of 9 for assessment area 1, missing score for assessment area2 and missing score for assessment area 3 and all of these scores are for the third reading.
I did duplicates report systemid and that gave me the number of duplicate entries that a person has so in essence, that told me that x number of people had entries for 4 time points/readings for example. However, it could not tell me how many have scores for the first and second reading alone, or how many have scores for first second and third reading alone, or how many have scores first second third and fourth reading alone and so on. I will need to have these counts for each assessment area.
I also tried crosstabulating whichreading (time variable) with each assessment area but that only showed me the number of people with a score of 1 (or 2 or 3) for each reading.
I am clueless on how to proceed so I would be grateful if someone could help. Thank you!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long dummyid str23 whichreading byte(assess1 assess2 assess3) 12345 "03 - Third reading" 9 . . 12345 "04 - Fourth reading" 10 7 4 12345 "05 - Fifth reading" 8 7 7 12345 "06 - Sixth reading" 10 8 6 12345 "08 - Eighth reading" 9 8 8 113345 "01 - First reading" 10 2 10 22222 "01 - First reading" 7 7 9 33333 "01 - First reading" 7 6 6 33333 "09 - Ninth reading" 10 . 8 33333 "02 - Second reading" 9 6 7 44444 "01 - First reading" 8 8 4 44444 "02 - Second reading" 8 8 9 44444 "03 - Third reading" 9 10 9 44444 "05 - Fifth reading" 5 7 6 44444 "10 - Tenth reading" 7 7 7 44444 "06 - Sixth reading" 8 8 3 21345 "04 - Fourth reading" 6 8 1 21345 "05 - Fifth reading" 9 8 8 21345 "06 - Sixth reading" 9 8 8 21345 "07 - Seventh reading" 9 9 8 21345 "08 - Eighth reading" 9 9 9 54345 "01 - First reading" 8 5 5 54345 "02 - Second reading" 10 7 10 54345 "04 - Fourth reading" 10 8 10 54345 "05 - Fifth reading" 8 7 9 54345 "06 - Sixth reading" 8 7 10 54345 "07 - Seventh reading" 9 7 10 54345 "08 - Eighth reading" 8 7 10 end
Comment