How do I keep multiple answers when I want state to delete some of the observations?
Normally I write the following, if I want to keep only one answer.
keep if xx==1
But now I want to keep more than one answer, why I guess that I should command something like:
keep if (xx=1), (xx==2)
But it doesnt work..
Related Posts with keep with multiple answers
Checking one variable with another variable from different datasetHello, I have a large dataset, with 2.800.000 observations and 10 variables aproximately, and I wou…
Use of weights and cluster standar errors in regresionsHi all I have a general question about the use of weights in regression and cluster standar error a…
Anyone familiar with unit root test(s) with multiple breaks?Hi, I would like to test a time series variable for unit root. I have one model with 4 impulse dumm…
Matching one variable with another variable from different datasetHello, I have a large dataset, with 2.800.000 observations and 10 variables aproximately, and I wou…
Difference-in-difference with same group but three time periodsHello Statalist community. I have a question regarding a difference-in-difference regression I want…
Subscribe to:
Post Comments (Atom)
0 Response to keep with multiple answers
Post a Comment