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
Double Machine Learning (DML) in STATA (xporegress command)Dear all, I am trying to use the command that STATA has for DML (Cross-fit partialing-out lasso lin…
Weighted Tabulation by Multiple Groups -- Export to XLS or DTAHello, I am using YRBS data -- a student survey taken in each US state every other year. Each entry …
Question on Nick Cox's aaplotSorry for this post, but I have spent over an hour with the data and with the manual but I have a pr…
Modelling wind direction and fire spreadI'm interested in finding whether wind direction is a good predictor of the direction of fire spread…
Assigning Continuous number to year and monthsHi all, I have date like this: date jan2015 jan2015 feb2015 march2015 march 2015 march2015 I want…
Subscribe to:
Post Comments (Atom)
0 Response to keep with multiple answers
Post a Comment