The two variables in my panel data-set, "index" and "year" are being identified as "long" type data but I want to convert them into "double" format. I tried using the two commands:
destring index, replace
index already numeric; no replace
encode index, gen (in2)
not possible with numeric variable
But none of them worked well. How can I change the format of these two variables ? TIA.
destring index, replace
index already numeric; no replace
encode index, gen (in2)
not possible with numeric variable
But none of them worked well. How can I change the format of these two variables ? TIA.
Comment