Hello,
I am trying to do some topic modeling based on the variable labels contained in firms' balance sheets. I need to produce a basic text list of the variable labels for which an observation (firm-year) has nonzero/nonmissing entries. I have tried modifying the following (which produces a text list of all variable names and labels) in several different ways to no avail.
foreach var of varlist *{ di "`var'" _col(20) "`: var l `var''" _col(50) "`: val l `var''" }
Suggestions are much appreciated
I am trying to do some topic modeling based on the variable labels contained in firms' balance sheets. I need to produce a basic text list of the variable labels for which an observation (firm-year) has nonzero/nonmissing entries. I have tried modifying the following (which produces a text list of all variable names and labels) in several different ways to no avail.
foreach var of varlist *{ di "`var'" _col(20) "`: var l `var''" _col(50) "`: val l `var''" }
Suggestions are much appreciated
Comment