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?
interactions in ipdmetanAs a not so experienced Stata user I was grateful to find the ipdmetan package to perform a two-stag…
Citing local macros in SQL select statementHi everyone, I am trying to extract some data from an external database using the command -odbc load…
Dyndoc with option docxHi all, Trying to convert a text file with some Stata code into a word document. Text file looks li…
*egen pair_id = group(DIST).Hi, I have created an id variable for a pair of countries(exporter importer) based on their distanc…
Help using the browse (br) command using ifHi StataList. How can I use the browse command to display certain observations from four specific w…
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