Programa SPSS para determinar NSE CEI simplificado (Junio 2015)

** NSE Simplificado  .
** Observatorio Social SAIMO ====== Mayo 2015 .
* ACLARACIONES:  .
* Las definiciones de las variables y sus categorías están al final.
* NSE varía entre 1 y 5;  NSE = 99 es señal de que hay un dato de entrada erróneo o faltante .
* La variable intermedia tempo1 se puede eliminar después del proceso.

* Calcula proporción de aportantes - Si se desconoce algún dato asume proporción intermedia (pap = 2).
COMPUTE tempo1 = 100 * capor / cper .
COMPUTE pap = 2 .
EXECUTE .
IF (tempo1 <= 40) pap = 1 .
IF (tempo1 >= 70) pap = 3 .
IF (capor = 99 | cper = 99) pap = 2 .
EXECUTE .

COMPUTE nse_sim = 99 .
EXECUTE .
** Ocupados .
DO IF (estado = 1 & cat_ocup = 2 & c_medica = 1 & categ = 1) .   /* Empleados jefes con cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim = 1 .
+ IF (ned = 4 & pap = 2) nse_sim = 1 .
+ IF (ned = 4 & pap = 3) nse_sim = 1 .
+ IF (ned = 3 & pap = 1) nse_sim = 3 .
+ IF (ned = 3 & pap = 2) nse_sim = 1 .
+ IF (ned = 3 & pap = 3) nse_sim = 1 .
+ IF (ned = 2 & pap = 1) nse_sim = 3 .
+ IF (ned = 2 & pap = 2) nse_sim = 2 .
+ IF (ned = 2 & pap = 3) nse_sim = 2 .
+ IF (ned = 1 & pap = 1) nse_sim = 3 .
+ IF (ned = 1 & pap = 2) nse_sim = 3 .
+ IF (ned = 1 & pap = 3) nse_sim = 2 .
END IF .
DO IF (estado = 1 & cat_ocup = 2 & c_medica > 1 & categ = 1) .   /* Empleados jefes sin cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim = 2 .
+ IF (ned = 4 & pap = 2) nse_sim = 2 .
+ IF (ned = 4 & pap = 3) nse_sim = 2 .
+ IF (ned = 3 & pap = 1) nse_sim = 3 .
+ IF (ned = 3 & pap = 2) nse_sim = 3 .
+ IF (ned = 3 & pap = 3) nse_sim = 3 .
+ IF (ned = 2 & pap = 1) nse_sim = 3 .
+ IF (ned = 2 & pap = 2) nse_sim = 3 .
+ IF (ned = 2 & pap = 3) nse_sim = 2 .
+ IF (ned = 1 & pap = 1) nse_sim = 4 .
+ IF (ned = 1 & pap = 2) nse_sim = 3 .
+ IF (ned = 1 & pap = 3) nse_sim = 3 .
END IF .
EXECUTE .
DO IF (estado = 1 & cat_ocup = 2 & c_medica = 1 & categ = 2) .   /* Empleados NO jefes con cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim = 3 .
+ IF (ned = 4 & pap = 2) nse_sim = 2 .
+ IF (ned = 4 & pap = 3) nse_sim = 2 .
+ IF (ned = 3 & pap = 1) nse_sim = 4 .
+ IF (ned = 3 & pap = 2) nse_sim = 3 .
+ IF (ned = 3 & pap = 3) nse_sim = 3 .
+ IF (ned = 2 & pap = 1) nse_sim = 4 .
+ IF (ned = 2 & pap = 2) nse_sim = 3 .
+ IF (ned = 2 & pap = 3) nse_sim = 4 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 4 .
END IF .
DO IF (estado = 1 & cat_ocup = 2 & c_medica > 1 & categ = 2) .   /* Empleados NO jefes sin cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim = 3 .
+ IF (ned = 4 & pap = 2) nse_sim = 3 .
+ IF (ned = 4 & pap = 3) nse_sim = 2 .
+ IF (ned = 3 & pap = 1) nse_sim = 4 .
+ IF (ned = 3 & pap = 2) nse_sim = 3 .
+ IF (ned = 3 & pap = 3) nse_sim = 3 .
+ IF (ned = 2 & pap = 1) nse_sim = 5 .
+ IF (ned = 2 & pap = 2) nse_sim = 4 .
+ IF (ned = 2 & pap = 3) nse_sim = 4 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 4 .
END IF .
EXECUTE .
DO IF (estado = 1 & cat_ocup = 3 & c_medica = 1) .   /* Cta.propia con cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim =  2 .
+ IF (ned = 4 & pap = 2) nse_sim =  2 .
+ IF (ned = 4 & pap = 3) nse_sim =   1 .
+ IF (ned = 3 & pap = 1) nse_sim =  4 .
+ IF (ned = 3 & pap = 2) nse_sim =  3 .
+ IF (ned = 3 & pap = 3) nse_sim =  3 .
+ IF (ned = 2 & pap = 1) nse_sim =  4 .
+ IF (ned = 2 & pap = 2) nse_sim =  4 .
+ IF (ned = 2 & pap = 3) nse_sim =  3 .
+ IF (ned = 1 & pap = 1) nse_sim =  5 .
+ IF (ned = 1 & pap = 2) nse_sim =  5 .
+ IF (ned = 1 & pap = 3) nse_sim = 4 .
END IF .
DO IF (estado = 1 & cat_ocup = 3 & c_medica > 1) .   /* Cta.propia sin cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim = 3 .
+ IF (ned = 4 & pap = 2) nse_sim = 3 .
+ IF (ned = 4 & pap = 3) nse_sim = 3 .
+ IF (ned = 3 & pap = 1) nse_sim = 4 .
+ IF (ned = 3 & pap = 2) nse_sim = 4 .
+ IF (ned = 3 & pap = 3) nse_sim = 4 .
+ IF (ned = 2 & pap = 1) nse_sim = 5 .
+ IF (ned = 2 & pap = 2) nse_sim = 5 .
+ IF (ned = 2 & pap = 3) nse_sim = 4 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 4 .
END IF .
EXECUTE .
DO IF (estado = 1 & cat_ocup = 1 & c_medica = 1) .   /* Empleadores con cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim =  1 .
+ IF (ned = 4 & pap = 2) nse_sim =  1 .
+ IF (ned = 4 & pap = 3) nse_sim =  1 .
+ IF (ned = 3 & pap = 1) nse_sim =  2 .
+ IF (ned = 3 & pap = 2) nse_sim =  2 .
+ IF (ned = 3 & pap = 3) nse_sim =  1 .
+ IF (ned = 2 & pap = 1) nse_sim =  3 .
+ IF (ned = 2 & pap = 2) nse_sim =  2 .
+ IF (ned = 2 & pap = 3) nse_sim =  2 .
+ IF (ned = 1 & pap = 1) nse_sim =  3 .
+ IF (ned = 1 & pap = 2) nse_sim =  3 .
+ IF (ned = 1 & pap = 3) nse_sim = 2 .
END IF .
DO IF (estado = 1 & cat_ocup = 1 & c_medica > 1) .   /* Empleadores sin cobertura medica
+ IF (ned = 4 & pap = 1) nse_sim =  2 .
+ IF (ned = 4 & pap = 2) nse_sim =  1 .
+ IF (ned = 4 & pap = 3) nse_sim =  1 .
+ IF (ned = 3 & pap = 1) nse_sim =  2 .
+ IF (ned = 3 & pap = 2) nse_sim =  2 .
+ IF (ned = 3 & pap = 3) nse_sim =  1 .
+ IF (ned = 2 & pap = 1) nse_sim =  3 .
+ IF (ned = 2 & pap = 2) nse_sim =  2 .
+ IF (ned = 2 & pap = 3) nse_sim =  2 .
+ IF (ned = 1 & pap = 1) nse_sim =  3 .
+ IF (ned = 1 & pap = 2) nse_sim =  3 .
+ IF (ned = 1 & pap = 3) nse_sim =  2 .
END IF .
EXECUTE .
** Desocupados .
DO IF (estado = 2 & cat_ocup = 2) .    /* Empleados  
+ IF (ned = 4 & pap = 1) nse_sim = 5 .
+ IF (ned = 4 & pap = 2) nse_sim = 4 .
+ IF (ned = 4 & pap = 3) nse_sim = 4 .
+ IF (ned = 3 & pap = 1) nse_sim = 5 .
+ IF (ned = 3 & pap = 2) nse_sim = 5 .
+ IF (ned = 3 & pap = 3) nse_sim = 4 .
+ IF (ned = 2 & pap = 1) nse_sim = 5 .
+ IF (ned = 2 & pap = 2) nse_sim = 5 .
+ IF (ned = 2 & pap = 3) nse_sim = 5 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 5 .
END IF .
DO IF (estado = 2 & cat_ocup = 3) .    /* Cta propia  
+ IF (ned = 4 & pap = 1) nse_sim = 4 .
+ IF (ned = 4 & pap = 2) nse_sim = 4 .
+ IF (ned = 4 & pap = 3) nse_sim = 3 .
+ IF (ned = 3 & pap = 1) nse_sim = 5 .
+ IF (ned = 3 & pap = 2) nse_sim = 4 .
+ IF (ned = 3 & pap = 3) nse_sim = 4 .
+ IF (ned = 2 & pap = 1) nse_sim = 5 .
+ IF (ned = 2 & pap = 2) nse_sim = 5 .
+ IF (ned = 2 & pap = 3) nse_sim = 4 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 5 .
END IF .
DO IF (estado = 2 & cat_ocup = 1) .    /* Empleadores  
+ IF (ned = 4 & pap = 1) nse_sim = 2 .
+ IF (ned = 4 & pap = 2) nse_sim = 2 .
+ IF (ned = 4 & pap = 3) nse_sim = 1 .
+ IF (ned = 3 & pap = 1) nse_sim = 3 .
+ IF (ned = 3 & pap = 2) nse_sim = 2 .
+ IF (ned = 3 & pap = 3) nse_sim = 2 .
+ IF (ned = 2 & pap = 1) nse_sim = 3 .
+ IF (ned = 2 & pap = 2) nse_sim = 3 .
+ IF (ned = 2 & pap = 3) nse_sim = 2 .
+ IF (ned = 1 & pap = 1) nse_sim = 3 .
+ IF (ned = 1 & pap = 2) nse_sim = 3 .
+ IF (ned = 1 & pap = 3) nse_sim = 2 .
END IF .
EXECUTE .
* INACTIVOS     .
DO IF (estado = 3 ) .   /* Jubilados y pensionados
+ IF (ned = 4 & pap = 1) nse_sim = 3 .
+ IF (ned = 4 & pap = 2) nse_sim = 2 .
+ IF (ned = 4 & pap = 3) nse_sim = 2 .
+ IF (ned = 3 & pap = 1) nse_sim = 4 .
+ IF (ned = 3 & pap = 2) nse_sim = 3 .
+ IF (ned = 3 & pap = 3) nse_sim = 3 .
+ IF (ned = 2 & pap = 1) nse_sim = 5 .
+ IF (ned = 2 & pap = 2) nse_sim = 4 .
+ IF (ned = 2 & pap = 3) nse_sim = 4 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 5 .
END IF .
DO IF (estado = 4 & c_medica = 1) .   /* Otros inactivos con cob.médica
+ IF (ned = 4 & pap = 1) nse_sim = 2 .
+ IF (ned = 4 & pap = 2) nse_sim = 2 .
+ IF (ned = 4 & pap = 3) nse_sim = 1 .
+ IF (ned = 3 & pap = 1) nse_sim = 3 .
+ IF (ned = 3 & pap = 2) nse_sim = 3 .
+ IF (ned = 3 & pap = 3) nse_sim = 2 .
+ IF (ned = 2 & pap = 1) nse_sim = 3 .
+ IF (ned = 2 & pap = 2) nse_sim = 3 .
+ IF (ned = 2 & pap = 3) nse_sim = 2 .
+ IF (ned = 1 & pap = 1) nse_sim = 4 .
+ IF (ned = 1 & pap = 2) nse_sim = 4 .
+ IF (ned = 1 & pap = 3) nse_sim = 3 .
END IF .
DO IF (estado = 4 & c_medica > 1) .   /* Otros inactivos sin cob.médica
+ IF (ned = 4 & pap = 1) nse_sim = 3 .
+ IF (ned = 4 & pap = 2) nse_sim = 3 .
+ IF (ned = 4 & pap = 3) nse_sim = 2 .
+ IF (ned = 3 & pap = 1) nse_sim = 3 .
+ IF (ned = 3 & pap = 2) nse_sim = 3 .
+ IF (ned = 3 & pap = 3) nse_sim = 2 .
+ IF (ned = 2 & pap = 1) nse_sim = 4 .
+ IF (ned = 2 & pap = 2) nse_sim = 4 .
+ IF (ned = 2 & pap = 3) nse_sim = 3 .
+ IF (ned = 1 & pap = 1) nse_sim = 5 .
+ IF (ned = 1 & pap = 2) nse_sim = 5 .
+ IF (ned = 1 & pap = 3) nse_sim = 4 .
END IF .
EXECUTE .
VARIABLE LABELS
  pap 'Proporción de aportantes en el hogar'
  ned 'Nivel educativo'
  estado 'Situación ocupacional'
  cat_ocup 'Modalidad de ocupación'
  categ 'Jerarquía laboral'
  c_medica 'Cobertura médica'
  nse_sim 'NSE simplificado'
.
VALUE LABELS
  pap
  1 'Hasta 40%'
  2 '41% a 69%'
  3 '70% y más'
/
  ned 
  1 'Sin estudios / Primaria incompleta'
  2 'Primaria completa / Secundaria incompleta'
  3 'Secundaria completa / Terciaria o Univ. incompleta'
  4 'Terciaria o Univ. completa'
/
  estado
  1 'Trabaja'
  2 'Desocupado'
  3 'Jubilado - pensionado'
  4 'Otros inactivos'
/
  cat_ocup
  1 'Empleador (dueño o socio)'
  2 'Empleado'
  3 'Por cuenta propia (sin empleados)'
/
  categ
  1 'Directivo / jefe '
  2 'Trabajador sin personal a su cargo'
/
  c_medica
  1 'Tiene'
  2 'No tiene'
  3 'No sabe - No contesta'
/
  nse_sim
  1 'ABC1'
  2 'C2'
  3 'C3'
  4 'D1'
  5 'D2E'
/
.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *