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?
Can someone help?! Can not get the mean of observations vertically! (with missing values)I have several financial metrics for about 60,000 stocks (+2.5M observations), and a sample of my Re…
Merging two panel datasetI am facing problem to merge the individual data set e.g Dataset 1: prepaid data for location 1 has…
Putexcel, Save Multiple Tables into One ExcelHello everyone, I am a beginner in Stata and encountered a problem while using putexcel. I ran: bys…
multiple regression when significant difference between groups within 1 regression?Hi there, I am studying the effect of becoming a parent on the earnings of fathers versus mothers. …
horizontal bargraph with multiple binary variablesDear all, I am quite stuck with some descriptive statistics. I have a household survey with binary …
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