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
Working with dates and loopIs it possible to get a loop that works with every string variable which are in date format (CCYY-NN…
Merging datasetsHi Users, I just got access to a dataset (M) which I need to merge with another data based on id an…
explaining regression coefficients economic significanceHello I performed xtreg y x x , fe regression to test the relationship between profit and cash hold…
Graph bar by two groups in one chart (not combined)Hello Statalist, I would like to put two graphs in one chart. (1) bar graph (mean) of output by nat…
Impulse response function after SVAR with exogenous variableHi, I'm trying to run the SVAR model with exogenous variables. A Y(t) = α+βy Y(t-1) + (d(t) +s(t))…
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