Good afternoon, the comment is new with the generation of database in STATA.
OBJECTIVE: GENERATE MAPS OF PERU ACCORDING TO GRADIENT (INTENSITY) OF VIOLENCE.
The violence variable has 7 dichotomous questions and where 0 is no violence and 1 to 7 (level 1 to level 7) of violence gradient. But my goal is to obtain the average according to the departments and then compare them with the gradient categories (1-7)
But I have problems to execute my base since it uses this code and generates the following error:
Code:
* 1) Instalación de software
ssc install spmap
ssc install mif2dta
ssc install shp2dta
*** Importación de Shapefile
** Cambiamos a la ubicación del rar
cd "F:\MIGUEL ANGEL\IIU ESCRITORIO\JEFE DE PRACTICA IIU\ELIZABETH_VIOLENCIA\base nueva\limite departamental"
shp2dta using bd.shp, database("map_Perú") coordinates("map_peru_coor") genid(id)
** ABRIMOS el archivo generado
use map_Perú, clear
**generamos el mapa
h spmap
spmap HECTARES using map_Perú.dta, id(id) fcolor(Blues)
Problem :
. spmap HECTARES using map_Perú.dta, id(id) fcolor(Blues)
File map_Perú.dta is not a valid basemap dataset
r(198);
Additional question like I have level 1 to 7, could generate a new categories of the gradient (i.e 0, 1-3, 2-4, 5-7) or per percentile, if it is correct to do so.
I appreciate your time taken for this question.
Related Posts with Problems with spmap
Tabstat tables side by side using esttab in a loopHi everyone, I am trying to get summary statistics of my variables using tabstat and would like to …
Interpretation of significances with moderation effectI am running a panel regression with the following problem: In the first regression X has a signifi…
The commands that work in Stata-16 and not in 17.Hello everyone, I used some commands in my do-file in Stata-16 and now they do not work in Stata-17.…
Help needed: Using lagged explanatory variables as instruments with xtabond2Dear Statalist, I am replicating the paper "Country or leader? Political change and UNGA voting" by…
Interpretation of significances with moderation effectI am currently running panel regression with random effects and there is a result that I cant fully …
Subscribe to:
Post Comments (Atom)
0 Response to Problems with spmap
Post a Comment