Hi all,
I will really appreciate your help in this matter.
I would like to know how can I define a variable using its relative position to another variable? For example, lets say I have the variables: A B C D E, and I would like to apply the command "keep B-D" (without the quotes). However, what I would like to be able to write is something like "keep B-B[,3]", or similar. Is something like this even possible in Stata?
Thank you very much in advance for your help.
Related Posts with How can I define a variable in terms of its relative position to another variable?
margins at min and max values of variableHello everyone, I would like to use -marginsplot- multiple times. My aim is to plot all values of a…
Accounting for missing variables due to taking logsThe variable 'population growth (annual %)', is generating quite a few missing values when I take th…
Conditional drop if command within a certain firm year levelHi, I am working on my master thesis and I am currently busy with the data cleaning process. One of…
Missing Axis Labels only for some GraphsDear All I am working with a simple panel dataset of 40 individuals' characteristics over 2000 to 2…
Improving Code SpeedHello Statalist, After much blood sweat and tears I managed to successfully find a working solution…
Subscribe to:
Post Comments (Atom)
0 Response to How can I define a variable in terms of its relative position to another variable?
Post a Comment