Hi. I'm new to Statalist. Could anyone help me with extracting the values of a variable as a local macro in the order that they appear in the data ? levelsof doesn't work as it sorts the values in alphabetical order.
Related Posts with extracting the values of a variable as a local macro in the order that they appear in the data
IV weakness testHello I just made a 2SLS estimate with an IV. I would like to test if my instrument is weak or stro…
Looping with conditionI am using Stata 15 for generating my data. I would like to generate my Outcome y (as continuous var…
Estimating a Fixed Effects Regression Using Instrument VariablesHi I am new to Stata and am trying to run a fixed effects regression using an instrumental variable…
List unique values by groupHellow there, Can you help me how I can list only unique values by group? Example I have 100 observ…
Saving files -- other than current directorySuppose current working directory is Code: cd "G:\Data\Raw_Data" How do I save a file in the Dat…
Subscribe to:
Post Comments (Atom)
0 Response to extracting the values of a variable as a local macro in the order that they appear in the data
Post a Comment