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?
to convert data into unique observationArray Hello, i am new to stata and i'm working on unbalanced panel. i have uploaded image of data.…
How can I export different tables to excel using different sheets?Hi, I'm having a hard time trying to export three different tabstats to three different excel sheets…
Customize the width of columns in tables using putdocxHi all, I'm having difficulty determining if and how putdocx can create a table with explicitly set…
adding top 3 variables with the highest value out of 6 variables for each observationHi, I have 6 variables each having a range of values. For each observation I want to add the 3 vari…
How can I export different tables to excel using different sheets?Hi, I'm having a hard time trying to export three different tabstats to three different excel sheets…
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