I'd like to create a local or global macro with the IDs (string variable: record_id) of all observations in my dataset that meet my chosen criteria (criteria: if female==1&age<60). The end result would be a macro with a long list of record_id's. Thanks in advance for the assistance. JA
Related Posts with How to create a macro with the IDs of observations that meet certain criteria
combining three twoway kdensity grapghs togetherUsing the below codes, I could create three nice kdensity plots. I was wondering if there is any way…
Adding F-Stat of first stage regression using ivreghdfe and estoutMy code is the following Code: eststo: ivreghdfe y (x=z), a(Year) first savefirst savefprefix(st1)…
Panel VECM post estimation or two-step replication with -pvar-Hi Statalists, I am fitting a panel VECM model with -xtpmg-. I am looking for the methods to conduc…
counting 1s in each groupHi STATALIST, I have variables group and order. I want a new variable which is counting 1s in the v…
Creating a Loop to Generate all Possible Pairs in a Variable ListHi, I posted yesterday, and got some helpful advice, though I would like some feedback on how to tac…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a macro with the IDs of observations that meet certain criteria
Post a Comment