I generated the following
Code:
egen firmlevel=group(CompanyID AnnualReportYear)
Code:
foreach v of varlist Main* { gen sum`v'=sum(`v'), by (firmlevel)
Code:
option by() not allowed
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.
egen firmlevel=group(CompanyID AnnualReportYear)
foreach v of varlist Main* { gen sum`v'=sum(`v'), by (firmlevel)
option by() not allowed
0 Response to looping by a specific variable
Post a Comment