I have a small dataset and it just has 2 variables. ID---student ID, exam_times----how many times a student took.
I want to use Stata code to find how many students took more than 1 time exam?
Thank you.
clear
input str10 id byte exam_times
1 1
1 2
2 1
3 1
3 2
3 3
3 4
4 1
4 2
4 3
end
Related Posts with How to Use Stata Code to Count How Many Students ever took More Than 1 Time Exam?
IV blows up coefficientsDear Stata Users Comparing a RE (xtreg, re) with and IV (xtivreg, re) model, I receive quite large …
building a continuous year variableDear all, Following is my dataset: Code: * Example generated by -dataex-. To install: ssc instal…
Data sharingDear all, Not sure if I'm writing on a correct page, but I'm completely sure that a lot of people h…
Problem with merging datasets - Variables do not uniquely identifyHi, I'm new to the forum, so I'm just learning the ropes around here. English is not my first langu…
Extract Monte Carlo results from MataDear all, I am doing a 2000 times monte carlo simulation of two-stage least square estimation with …
Subscribe to:
Post Comments (Atom)
0 Response to How to Use Stata Code to Count How Many Students ever took More Than 1 Time Exam?
Post a Comment