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.