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?
What does the "e" option do with the predict command? How does it differ from the residuals option?When I run my fixed effects regression model: xtreg y var1... varn, fe cluster(id) and predict res…
Replace all growth rates if cond1 or cond 2 and cond3Hello Everybody, I am sitting here on a problem where I try to replace all observations that have e…
Creating a dummy variable - New User of Stata 15Hello everyone, undergraduate Bsc Economics student here, I am struggling to use Stata 15. This may …
clogit and Marignal effectshello everyone, I am using Stata 16, and for my research model, I am using -clogit- to run my model …
Creating a frame of average values by other variables.Hello, I have a dataset (example data below) that contains, by area code (lsoacode), the travel dis…
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