0 of 5 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 5 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0) 0 Essay(s) Pending (Possible Point(s): 0)
Enter the command ‘sum total_ely3 if total_ely1 == . & total_ely2 == .’
Enter the command ‘sum total_ely3 if total_ely1 == . | total_ely2 == .’
Enter the command ‘sum total_ely3 if total_ely1 != . & total_ely2 != .’ Alternatively you could enter ‘sum total_ely3 if !missing(total_ely1) & !missing(total_ely2)’
First identify the 25th and 75th percentiles of baseline scores by running the command ‘sum total_bl, det’. You’ll see that the 25th percentile is 4 and the 75th percentile is 10. So you can calculate the average Year 3 score for students below the 25th and above the 75th percentiles with the command ‘sum total_ely3 if total_bl < 4 | total_bl > 10’.
While this command will give the correct answer, it requires you to view the values in the first command and manually enter them into the second command. This type of ‘hardcoding’ is prone to error, especially for numbers with lots of significant digits and in long pieces of code. A better approach would be to use macros as in the following command: sum total_ely3 if total_bl < `r(p25)’ | total_bl > `r(p75)’. This will be covered in the next lesson on Stata Best Practices.
Run the command ‘count if (child_caste_cat == 2 | child_caste_cat == 3 | child_caste_cat == 4) & total_ely3 == 16’
1. What is the average Year 3 total test score for students who were absent at both the Year 1 and Year 2 tests? Round to the nearest 0.1.
2. What is the average Year 3 total test score for students who were absent at either the Year 1 or Year 2 tests? Round to the nearest 0.1.
3. What is the average Year 3 total test score for students who were present at both the Year 1 and Year 2 tests? Round to the nearest 0.1.
4. What is the average Year 3 total test score for students who scored less than the 25th percentile score or greater than the 75th percentile score on the baseline test? Round to the nearest 0.1.
5. How many students from the OBC, SC, or ST caste categories scored a perfect 16 on the Year 3 test?
6 December 2024
5 December 2024
4 December 2024
3 December 2024
12 September 2022
Username or Email Address
Password
Remember Me