Hello everyone,
I am currently working on making some maps in which I need to create a zoom on a section to be able clearly see the data in the corresponding section. It seems that this is only possible to do so using grmap, and not the spmap which I had been previously using. The issue that I am encountering is that in order to use grmap I must first use spset on my data, and I come upon the error stating:
when I try to do so. When I check xtset as stated I get that I have a balanced panel, so I am unclear as to what is causing the problem, especially seeing as I have had no problem whatsoever with the same data using spmap.
For further information I have attached the examples of the two maps which I have created with spmap.
Here is an excerpt of the data I am using (I have removed the sensitive data which I am not allowed to share)
Here is the code I used:
resulting in the following:
then:
I have also tried a variety of different ways to spset for example using the following:
I would really appreciate any insight into what may be the issue, I have been trying to get this to work on stata for a week now, and have scoured the documentation for help, but have not come very far (clearly)
Thank you so much!
(below are the two maps, the first of France and the second of the Parisian region which we would like to zoom into to be able to see the details)
I am currently working on making some maps in which I need to create a zoom on a section to be able clearly see the data in the corresponding section. It seems that this is only possible to do so using grmap, and not the spmap which I had been previously using. The issue that I am encountering is that in order to use grmap I must first use spset on my data, and I come upon the error stating:
Code:
spset ID invalid panel setting Type xtset to view panel data settings.
For further information I have attached the examples of the two maps which I have created with spmap.
Here is an excerpt of the data I am using (I have removed the sensitive data which I am not allowed to share)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long ID str36 LIB str2 DEP double POP2010 str35 CodePostal str14 xcoord str19 ycoord 1000 "Bourg-en-Bresse" "01" 45493 "01000" "46.2051520382" " 5.24602125501" 1090 "Montmerle-sur-Sa�ne" "01" 8620 "01090" "46.0735946256" " 4.81293575559" 1100 "Oyonnax" "01" 33676 "01100" "46.2054981558" " 5.65781475272" 1110 "Hauteville-Lompnes" "01" 7022 "01110" "46.0015344029" " 5.51130637511" 1120 "Montluel" "01" 17895 "01120" "45.8446213549" " 5.02783224111" end
Code:
spset ID xtset ID spset, modify coordsys(latlong, kilometers)
Code:
spset ID invalid panel setting Type xtset to view panel data settings. r(459);
Code:
xtset ID Panel variable: ID (balanced)
Code:
spset, modify coordsys(latlong, kilometers) data not spset r(459);
Thank you so much!
(below are the two maps, the first of France and the second of the Parisian region which we would like to zoom into to be able to see the details)