Hello,
I am trying to import a .shp shapefile containing English local authorities into Stata using shp2dta user written command, but I get an error message saying "long invalid varname" (signalling that the shapefile dataset includes a variable named "long", which is an invalid variable name within Stata - if I have understood correctly).
Is there a way of amending the varname within the shp2dta command to successfully import it?
Or is it necessary to use a workaround by e.g. importing into R to rename/delete the variable called "long" (as noted by Carolin Thol in this previous post: https://www.statalist.org/forums/for...files-in-stata)? If anyone has successfully done this and is happy to share steps, that would be much appreciated (I have managed to upload into R, but it does not display like a "normal" dataset so I have not found a way of amending the variable).
Many thanks!
Francesca
Related Posts with Importing .shp file to Stata with "long" varname
inquire about ORDERED LOGISTIC REGRESSIONHello, in my research paper, I have a dependent variable: financial stress level 1-10. I have a set …
IVtobit aweight and clusteringDear friends, if I use tobit for dependent variable, Y, with lots of zero or negative values, can I …
Categorical covariate for Parametric Survival ModelHello House, I am running parametric survival models using Code: streg Xlist distribution () time f…
How to extract element of a matrix and put it to new rows of this matrixDear Statalists, I am not very familiar with the matrix in Stata. I just have a simple question bel…
Manual -xtprobit, fe- and -xtoprobit, fe-?Dear listers, after estimating fixed effect regressions for an outcome with a limited number of val…
Subscribe to:
Post Comments (Atom)
0 Response to Importing .shp file to Stata with "long" varname
Post a Comment