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?
 Invalid name Error when using postHi Statalist,
I was running regressions in loop and trying to store coefficients. I used post for t… Invalid name Error when using postHi Statalist,
I was running regressions in loop and trying to store coefficients. I used post for t…
 Help with time-trend analysisI have a database of the volume of a certain type of test across time. I want to show how the trend … Help with time-trend analysisI have a database of the volume of a certain type of test across time. I want to show how the trend …
 Runby corr, error: store_data(): 3900 unable to allocate real <tmp>Hello,
I am working on a project where I need to runby the corr program and return the correlation … Runby corr, error: store_data(): 3900 unable to allocate real <tmp>Hello,
I am working on a project where I need to runby the corr program and return the correlation …
 did_multiplegt cannot estimate treatment effect; prompt does not applyHello everyone,
I am using the did_multiplegt command in order to perform some analyses for my thes… did_multiplegt cannot estimate treatment effect; prompt does not applyHello everyone,
I am using the did_multiplegt command in order to perform some analyses for my thes…
 gsem with interaction termsMy co-author and I are using gsem for our empirical analysis, but we have problems with how to inter… gsem with interaction termsMy co-author and I are using gsem for our empirical analysis, but we have problems with how to inter…
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