Hello everybody,
I have the following problem: II try to replace ethn1_2020=0 if DE_ETHN1!=276 & country==276. Actually this should change about 50 values - but instead 129 are being changed... and I have no clue why. (The two variables are connected in the sense that they both were constructed from 1 multiple choice question.)
I hope I apply the dataex command correctly:
In case that no, I attach the dofile and shortened dataset.
I have the following problem: II try to replace ethn1_2020=0 if DE_ETHN1!=276 & country==276. Actually this should change about 50 values - but instead 129 are being changed... and I have no clue why. (The two variables are connected in the sense that they both were constructed from 1 multiple choice question.)
I hope I apply the dataex command correctly:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int(DE_ETHN1 DE_ETHN2) float ethn1_2020 int country -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 -2 -2 . 40 end label values DE_ETHN1 DE_ETHN1 label def DE_ETHN1 -2 "-2. NAP, other countries", modify label values DE_ETHN2 DE_ETHN2 label def DE_ETHN2 -2 "-2. NAP, other countries", modify label values ethn1_2020 ethn1_lb label values country COUNTRY label def COUNTRY 40 "40. AT-Austria", modify
Comment