Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65553

How can I drop observations equal certain numbers from two separate variables?

$
0
0
How can I drop observation equal certain numbers (in my case 0, -9) from two separate variables? The requirement is: drop only if observations in both variables equal 0 or -9, meaning that if one of the observations in V1 or V2 is any other number, it should not be dropped.

PS. I am new to stata

Viewing all articles
Browse latest Browse all 65553

Trending Articles