Hi,
I imagine this question has already been answered but I cannot seem to find it. I want to figure out the number of teachers who taught a given course in a school and district. I have tried various different options, but none give me what I am looking for. Here is what I have tried:
egen N_Tpercourse = count(staffid), bysort (leanumber schoolnumber coursecode) /// this option counts the total number of times the staffid appears.
egen N_Tpercourse = gropu (staffid leanumber schoolnumber coursecode)
I have tried other things but none seem to do what I want them to do. Any suggestions? Or can you point me to where this question has already been answered? Thanks in advance.
Related Posts with Counting unique ID who taught a course in a given district and school
Combining summary statistics and correlation matrixHi everyone, I need to create a table combining summary statistics and correlation matrix as a part …
Merge while keeping value labels in master and using dataset unchangedHello! I am trying to merge two datasets from a survey which contains household ((HH) level data wi…
Help with rounding off in STATAI am new to Stata and I need to create a three-way table. I was trying to export it using "asdoc tab…
Structural Equation Modelling (SEM) using STATAHi, I want to analyze my data using SEM in stata. This is my model: Array Health variable consist of…
Using Kappa / Weighted KappaDear all Please advise if I can use kappa with this data structure: With two raters (fc and lp) sco…
Subscribe to:
Post Comments (Atom)
0 Response to Counting unique ID who taught a course in a given district and school
Post a Comment