Responding to #14: I can't replicate your problem in the example data. If I run
I get a graph with no negative values of either variable.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(id imp p_imp) 100018 5 1 100019 1 5 100023 10 10 100024 10 10 100029 5 1 100030 1 5 100038 5 0 100039 0 5 100042 2 4 100043 4 2 100048 -8 -8 100049 -8 -8 100052 2 7 100053 7 2 100055 -8 3 100057 3 1 end foreach var of varlist _all { replace `var' = . if `var' < 0 } graph twoway scatter p_imp imp
Comment