Hi, could any one help me with the following two issues?
First, my id variable values start with 001, 002,... 011, 012, ... 099... and they are all coded as "string".
I thought I should convert them into "numeric" (please say no if this is not what I am supposed to do) and once I converted them, all zeros are gone.
How can I keep those zeros even when I convert them as numeric and is it really necessary or desirable to keep those zeros (since they are original id, so I think I should keep them)?
And second question is:
If some of group id variables start with alphabet (e.g. this household belongs to G35) as "string" variables, then can I just keep them as string or should I convert them something else that should work in Stata?
Sorry for bombarding many questions.
Thanks.
Related Posts with How to convert string id variable starting with "00" to numeric without losing the "00"?
Exporting shapefiles with nonconsecutive, multipart polygons using GeotoolsI am using the -geotools- command to export polygon features to an ESRI shapefile. The input geograp…
Staggered Difference in Difference*Hi My data has the following setup. I have individual level data for years 1995, 2000, 2005, 2010 a…
Error uninstalling a package: Criterion matches more than one packageDavid Roodman posted yesterday a discussion of xtabond2, contributed by him I installed the package …
Panel dataDear Members I hope all is well. Please, I would like to know that : 1-) Should I use Xtset Command …
Margins not estimableHello! I am trying to look at the effect mandatory elections (Valplikt) has on satisfaction with dem…
Subscribe to:
Post Comments (Atom)
0 Response to How to convert string id variable starting with "00" to numeric without losing the "00"?
Post a Comment