Dear Stata users,
A quick question: Is there any command to list all varlists that have missing values? Maybe such command should also return `r(varlist)'. In the example data below, I want a command that could exactly list variable: Talla CIE Fuma EdadF. Put it concretely (suppose that command called foobar), when run foobar, it should do the following work:
A quick question: Is there any command to list all varlists that have missing values? Maybe such command should also return `r(varlist)'. In the example data below, I want a command that could exactly list variable: Talla CIE Fuma EdadF. Put it concretely (suppose that command called foobar), when run foobar, it should do the following work:
Code:
. foobar _all Talla CIE Fuma EdadF . display `r(varlist)' Talla CIE Fuma EdadF
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str5 CP double Peso int Talla str6 CIE byte Fuma float(CProv ComAut) byte EdadF "08430" 64.7 169 "354.0" 2 8 8 16 "08080" 101.5 170 "428.1" . 8 8 . "08190" 55 . "012.22" 0 8 8 .z "08401" 66.7 175 "454.1" 2 8 8 . "29700" 75.5 170 "428.1" 2 29 1 .a "25002" 71 175 "" 1 25 8 16 "17014" 67.5 177 "599.82" 0 17 8 .z "43365" 65.4 175 "466.11" 0 43 8 .z "29720" 71.1 181 "011.45" 2 29 1 14 "08001" 69.8 178 "012.32" 2 8 8 14 "08018" 53.8 162 "454.1" 0 8 8 .z "17430" 58.4 172 "014.01" 2 17 8 15 "08005" 74.8 163 "038.11" 2 8 8 16 "08012" 59.2 173 "055.8" 2 8 8 14 "08530" 62 173 "651.01" 0 8 8 .z "08025" 66.9 176 "077.0" 2 8 8 17 "08080" 59.8 168 "075" 2 8 8 18 "17430" 58 164 "470" 2 17 8 16 "08032" 61.2 170 "346.01" 0 8 8 .z "43365" 63.1 174 "428.9" 2 43 8 15 "43365" 70.9 167 "425.3" 1 43 8 15 "08005" 64.5 168 "381.03" 0 8 8 .z "25002" 92.3 189 "363.31" 2 25 8 . "08450" 69.8 167 "011.46" 1 8 8 17 "08013" 82.2 171 "" 0 8 8 .z "17402" 67.8 180 "389.02" 0 17 8 .z "08720" 65.6 182 "514" 0 8 8 .z "25002" 71.5 184 "362.84" 0 25 8 .z "17014" 73.8 178 "483.8" 1 17 8 16 "08016" 48.6 166 "487.8" 0 8 8 .z "08021" 61.6 172 "346.01" 0 8 8 .z "08222" 74.1 174 "466.11" 1 8 8 15 "08014" 61.9 172 "466.19" 1 8 8 16 "08005" 79.6 173 "072.7" 0 8 8 .z "17014" 66.1 176 "346.00" 0 17 8 .z "43365" 60.2 169 "360.21" 1 43 8 14 "08002" 57.5 168 "361.32" 2 8 8 15 "08031" 61.6 170 "" 2 8 8 13 "08021" 84.7 173 "055.8" 2 8 8 13 "17402" 70.2 167 "525.3" 2 17 8 12 "08006" 64.1 168 "212.3" 2 8 8 14 "25002" 85.2 185 "478.21" 2 25 8 . "25002" 54.5 159 "650" 0 25 8 .z "43365" 66.5 174 "599.3" 1 43 8 13 "08850" 76 171 "389.02" 1 8 8 17 "08911" 68.5 177 "381.02" 0 8 8 .z "17003" 65 174 "368.42" 0 17 8 .z "08031" 72.1 183 "389.03" 2 8 8 . "08850" 68.7 179 "362.34" 0 8 8 .z "08911" 57.2 166 "014.03" 0 8 8 .z "17003" 63.4 169 "599.1" 2 17 8 15 "08031" 77.2 178 "600" 2 8 8 16 end

Comment