Hello ,
I wish to destring caseid to create caseid FE.
However destring command doesnt work. Shows following
and when I run encode it shows the following
How can I modify this variable in order to add this as a FE in regressions?
I wish to destring caseid to create caseid FE.
Code:
Code:* Example generated by -dataex-. To install: ssc install dataex clear input str15 caseid " 01000101 02" " 01000101 02" " 01000101 02" " 01000109 01" " 01000109 01" " 01000110 02" " 01000111 02" " 01000120 01" " 01000120 01" " 01000123 02" " 01000129 02" " 01000129 02" " 01000130 02" " 01000130 02" " 01000130 02" " 01000134 02" " 01000134 02" " 01000143 01" " 01000143 01" " 01000150 02" " 01000150 02" " 01000150 02" " 01000152 02" " 01000152 02" " 01000157 02" " 01000157 02" " 01000162 02" " 01000162 02" " 01000171 02" " 01000171 02" " 01000172 02" " 01000172 02" " 01000196 02" " 01000196 02" " 01000214 02" " 01000214 02" " 01000216 02" " 01000216 02" " 01000216 02" " 01000221 02" " 01000221 02" " 01000221 02" " 01000227 04" " 01000227 04" " 01000245 04" " 01000257 02" " 01000257 02" " 01000258 02" " 01000258 02" " 01000258 02" " 01000274 02" " 01000274 02" " 01000274 02" " 01000275 03" " 01000275 03" " 01000280 02" " 01000280 02" " 01000282 02" " 01000282 02" " 01000283 02" " 01000283 02" " 01000283 02" " 01000287 02" " 01000287 02" " 01000287 02" " 01000290 02" " 01000290 02" " 01000310 02" " 01000310 02" " 01000313 02" " 01000319 02" " 01000366 02" " 01000366 02" " 01000366 02" " 01000366 02" " 01000371 04" " 01000371 04" " 01000373 02" " 01000373 02" " 01000374 02" " 01000374 02" " 01000375 03" " 01000383 02" " 01000383 02" " 01000406 02" " 01000406 02" " 01000406 02" " 01000412 05" " 01000412 05" " 01000429 02" " 01000430 02" " 01000433 02" " 01000433 02" " 01000433 02" " 01000434 03" " 01000434 03" " 01000435 02" " 01000435 02" " 01000435 02" " 01000445 02" end
However destring command doesnt work. Shows following
Code:
destring caseid , replace caseid contains nonnumeric characters; no replace
Code:
. encode caseid , gen(momid) too many values r(134);
Comment