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
Need help with creating a new variable based on several conditions pleaseHi all, I'm recently compling a data set that captures data about how car plants affect its surround…
Fixed effect with 2 time pointsI would like to examine the effect of the COVID-19 outbreak on social isolation using panel study (d…
Issue with creating STATA bar graphI have problem to create bar graph with my data. 1st image is my desired graph. 2nd table is my data…
Need help to check out my syntax [Fixed-effect model]I am not familier with STATA, so I need your help checking out my syntax. I would like to examine t…
creating a new var: Type mismatchHi I am going to classify firms into regions. I have a variable that specifies the firm's locations…
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