Hello,
I am trying to select a couple of cases in a dataset - and perform a set of operations/changes on those cases. In SPSS, I can use SELECT IF to temporarily restrict operations to cases fiting that criteria. After saving the operations, I can remove the restrictions to work on the full dataset.
In STATA, I think I can temporarily use KEEP IF to temporarily restrict operations to data satisfying the IF condition. But once I am done with operations on those temporarily selected cases, how can I remove the restrictions and save changes to the full dataset?
Thanks for any advance - cY
Related Posts with Keep if or Drop If
about mixed command and the random effectsDear professors When I type the command "mixed education culture ses100 $var || schids: culture, …
Creating a new variable based on all the following values of an existing variableHello -- I was unsure how to word the title, but hopefully it offers some clue as to what I am tryin…
How to correctly interrupt the moderating effect in a modelDear all I have three variables: New.gw is my x and log_spread is my Y and the moderator is a legal …
set string case to missing if a phrase is foundHello, I have a series of string variables (drug1 - drug25) that contain information on types of dr…
How to calculate distance in this case?Dear all, I would like to calculate a distance as follows: distance is defined as the straight-line…
Subscribe to:
Post Comments (Atom)
0 Response to Keep if or Drop If
Post a Comment