You need to find the 40% of affected variables and then provide a data example based on them.
-
Login or Register
- Log in with
* Example generated by -dataex-. To install: ssc install dataex clear input double(is12reasnprx1 is12reasnprx4) . . . . . . . . . . . . . . . . . . . . 1 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 . . . . . . . . . . . . . . . . . . . . 2 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 . . . . . . 1 2 . . . . 1 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . end label values is12reasnprx1 is12reasnprx1 label def is12reasnprx1 1 " 1 Yes", modify label def is12reasnprx1 2 " 2 No", modify label values is12reasnprx4 is12reasnprx4 label def is12reasnprx4 1 " 1 Yes", modify label def is12reasnprx4 2 " 2 No", modify
elabel define * (= #) (= ustrregexra(@, "^(\s*\d+\s+)(\w+)", "$2")) , modify
elabel define * (= #) (= ustrregexra(@, "^(\s*"+string(#)+"\s+)(\w+)", "$2")) , modify
. label list foo: 42 42 foo 73 42 bar .z .z foobar . elabel define * (= #) (= ustrregexra(@, "^(\s*"+string(#)+"\s+)(\w+)", "$2")) , modify . label list foo: 42 foo 73 42 bar .z foobar
Comment