Here is some code to recreate the issue:
Code:
set obs 10000 set seed 1979 * Creating sample dataset gen score = runiform()*100 gen day = runiformint(1,31) bysort day (score): gen daily_rank = _n
Thanks in advance!
Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.
set obs 10000 set seed 1979 * Creating sample dataset gen score = runiform()*100 gen day = runiformint(1,31) bysort day (score): gen daily_rank = _n
0 Response to Summing observations that fall below a score
Post a Comment