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
Extracting just the month as a new variable from a complete date Hi, I have a variable that shows me the date of funding in the format, "day, dd/month/year, time"…
xtmerlogitFriends, I had this query; I am fitting three levels logistic-mixed effect model with Random coeff…
Checking to see if one variable is bigger than the otherDear Stata Users, I have two variables (Goal & Pledged). As I am looking to see what is my idea…
How to remove an extra digit/character from a string variableDear Statalist users I have a dataset which has a string variable in three parts, by convention, se…
Linux: Make Stata default application of file type .dta (etc.)How can I change the default application of file types such as .dta, .do, .gph, .smcl to Stata? I su…
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