'2003
OPEN C:\Users\Shei\Desktop\TRABAJOS_FINALES\TESIS\TESIS\2003\03\individual_t303.WF1
'Se han unido ambas
'OPEN C:\Users\Shei\Desktop\TRABAJOS_FINALES\TESIS\TESIS\2003\04\individual_t403.WF1
'Se le ha hecho un merge que contiene errores 
'OCUPACIÓN PRINCIPAL
series activities=0
activities=@val(pp04b_cod)
series ocup=0
ocup = @val(pp04d_cod)
' TIPO DE ACTIVIDAD
series agricultura=0
smpl if activities=01 or activities=0500 or activities=0101 or activities=0102 or activities=0103 or activities=0104 or activities=0105 or activities=02 or activities=0200 or activities=05
agricultura=1
smpl @all
series mineria=0
smpl if activities=10 or activities=1000 or activities=11 or activities=1100 or activities=12 or activities=1200 or activities=13 or activities=1300 or activities=14 or activities=1400
mineria=1
smpl @all
series industria=0
smpl if activities=15 or activities =1501 or activities =1502 or activities =1503 or activities =1504 or activities =1505 or activities =16 or activities=1600 or activities=17 or activities=1700 or activities=18 or activities=1800 or activities=19 or activities=1900 or activities=1901 or activities=1902 or activities=20 or activities=2000 or activities=21 or activities=2100 or activities=22 or activities=2200 or activities=23 or activities=2301 or activities=2302 or activities=2303 or activities=24 or activities=2401 or activities=2402 or activities=2403 or activities=2409 or activities=25 or activities=2501 or activities=2502 or activities=26 or activities=2601 or activities=2609 or activities=27 or activities=2700 or activities=28 or activities=2800 or activities=29 or activities=2900 or activities=30 or activities=3000 or activities=3100 or activities=31 or activities=32 or activities=3200 or activities=33 or activities=3300 or activities=34 or activities=3400 or activities=35 or activities=3501 or activities=3502 or activities=3503 or activities=3509 or activities=36 or activities=3601 or activities=3609 or activities=37 or activities=3700
industria=1
smpl @all
series energia=0
smpl if activities=40 or activities=4001 or activities=4002 or activities=41 or activities=4100
energia=1
smpl @all
series construccion=0
smpl if activities=45 or activities=4500
construccion=1
smpl @all
series comercio=0
smpl if activities=50 or activities=5001 or activities=5002 or activities=5002 or activities=5003 or activities=5004 or activities=5005 or activities=53 or activities=5301 or activities=5302 or activities=5303 or activities=5304 or activities=5305 or activities=5306 or activities=5307 or activities=5308 or activities=5309 or activities=5310 or activities=5310 or activities=5311
comercio=1
smpl @all
'Todas las que son iguales a 0 expresan servicios
'OCUPACIONES
'Jerarquia Ocupacional
series cuentaprop=0
smpl if @mid(@str(ocup), 3, 1) = "1"
cuentaprop=1
smpl @all
series jefes=0
smpl if @mid(@str(ocup), 3, 1) = "2"
jefes=1
smpl @all
series trabajador=0
smpl if @mid(@str(ocup), 3, 1) = "3"
trabajador=1
smpl @all
'Todas las que quedan en 0 representan directivo
'Tecnología Ocupacional
series sinopmaq=0
smpl if @mid(@str(ocup), 4, 1) = "1"
sinopmaq=1
smpl @all
series opmaqyeq=0
smpl if @mid(@str(ocup), 4, 1) = "2"
opmaqyeq=1
smpl @all
'Todas las que son iguales a 0 representan operación de sistemas y equipos informatizados
'Calificación Ocupacional
series profesional=0
smpl if @mid(@str(ocup), 5, 1) = "1"
profesional=1
smpl @all
series tecnico=0
smpl if @mid(@str(ocup), 5, 1) = "2"
tecnico=1
smpl @all
series operativo=0
smpl if @mid(@str(ocup), 5, 1) = "3"
operativo=1
smpl @all
'Todas las que son iguales a 0 representan personal no calificado
'Sexo
series hombre
hombre=ch04=1
'Estado Civil
series married
married=ch07=2
' Horas FullTime
series fulltime
smpl if PP03C=1 and pp3e_tot>40 and pp3e_tot<168
fulltime=1
smpl @all
'BENEFICIOS
series beneficios
beneficios=pp07f1=1 or pp07f2=1 or pp07f3=1 or pp07f4=1
beneficios=1
'HIJOS
Series a_hijo
a_hijo=@sumsby(componente=3, codusu)
smpl if a_hijo>2 
smpl @all 
'EDUCACIÓN
series educ =0
educ= @val(ch14)
series a_educ
'Primario
smpl if ch12=2 and ch13=2 and educ=1
a_educ=1
smpl @all
smpl if ch12=2 and ch13=2 and educ=2
a_educ=2
smpl @all
smpl if ch12=2 and ch13=2 and educ=3
a_educ=3
smpl @all
smpl if ch12=2 and ch13=2 and educ=4
a_educ=4
smpl @all
smpl if ch12=2 and ch13=2 and educ=5
a_educ=5
smpl @all
smpl if ch12=2 and ch13=2 and educ=6
a_educ=6
smpl @all
smpl if ch12=2 and ch13=1
a_educ=6
smpl @all
smpl if ch12=2 and ch13=2 and educ=>7 and educ<90
a_educ=6
smpl @all
''EGB
smpl if ch12=3 and ch13=2 and educ=1
a_educ=1
smpl @all
smpl if ch12=3 and ch13=2 and educ=2
a_educ=2
smpl @all
smpl if ch12=3 and ch13=2 and educ=3
a_educ=3
smpl @all
smpl if ch12=3 and ch13=2 and educ=4
a_educ=4
smpl @all
smpl if ch12=3 and ch13=2 and educ=5
a_educ=5
smpl @all
smpl if ch12=3 and ch13=2 and educ=6
a_educ=6
smpl @all
smpl if ch12=3 and ch13=2 and educ=7
a_educ=7
smpl @all
smpl if ch12=3 and ch13=2 and educ=8
a_educ=8
smpl @all
smpl if ch12=3 and ch13=2 and educ=9
a_educ=9
smpl @all
smpl if ch12=3 and ch13=1
a_educ=9
smpl @all
smpl if ch12=3 and ch13=2 and educ=>10 and educ<90
a_educ=9
smpl @all
'Secundario
smpl if ch12=4 and ch13=2 and educ=0
a_educ=6
smpl @all
smpl if ch12=4 and ch13=2 and educ=1
a_educ=7
smpl @all
smpl if ch12=4 and ch13=2 and educ=2
a_educ=8
smpl @all
smpl if ch12=4 and ch13=2 and educ=3
a_educ=9
smpl @all
smpl if ch12=4 and ch13=2 and educ=4
a_educ=10
smpl @all
smpl if ch12=4 and ch13=2 and educ=5
a_educ=11
smpl @all
smpl if ch12=4 and ch13=2 and educ=6
a_educ=12
smpl @all
smpl if ch12=4 and ch13=1
a_educ=12
smpl @all
smpl if ch12=4 and ch13=2 and educ=99
a_educ=6
smpl @all
smpl if ch12=4 and ch13=2 and educ=>7 and educ<90
a_educ=12
smpl @all
'Polimodal
smpl if ch12=5 and ch13=2 and educ=0
a_educ=9
smpl @all
smpl if ch12=5 and ch13=2 and educ=1
a_educ=10
smpl @all
smpl if ch12=5 and ch13=2 and educ=2
a_educ=11
smpl @all
smpl if ch12=5 and ch13=2 and educ=3
a_educ=12
smpl @all
smpl if ch12=5 and ch13=1
a_educ=12
smpl @all
smpl if ch12=5 and ch13=2 and educ=99
a_educ=9
smpl @all
smpl if ch12=5 and ch13=2 and educ=>4 and educ<90
a_educ=12
smpl @all
'Terciario
smpl if ch12=6 and ch13=2 and educ=0
a_educ=12
smpl @all
smpl if ch12=6 and ch13=2 and educ=1
a_educ=13
smpl @all
smpl if ch12=6 and ch13=2 and educ=2
a_educ=14
smpl @all
smpl if ch12=6 and ch13=2 and educ=3
a_educ=15
smpl @all
smpl if ch12=6 and ch13=1
a_educ=15
smpl @all
smpl if ch12=6 and ch13=2 and educ=99
a_educ=12
smpl @all
smpl if ch12=6 and ch13=2 and educ=>4 and educ<90
a_educ=15
smpl @all
'Universitario
smpl if ch12=7 and ch13=2 and educ=0
a_educ=12
smpl @all
smpl if ch12=7 and ch13=2 and educ=1
a_educ=13
smpl @all
smpl if ch12=7 and ch13=2 and educ=2
a_educ=14
smpl @all
smpl if ch12=7 and ch13=2 and educ=3
a_educ=15
smpl @all
smpl if ch12=7 and ch13=2 and educ=4
a_educ=16
smpl @all
smpl if ch12=7 and ch13=2 and educ=5
a_educ=17
smpl @all
smpl if ch12=7 and ch13=1
a_educ=17
smpl @all
smpl if ch12=7 and ch13=2 and educ=99
a_educ=12
smpl @all
smpl if ch12=7 and ch13=2 and educ=>6 and educ<90
a_educ=18
smpl @all
'Posgrado
smpl if ch12=8 and ch13=2 and educ=0
a_educ=15
smpl @all
smpl if ch12=8 and ch13=2 and educ=1
a_educ=18
smpl @all
smpl if ch12=8 and ch13=2 and educ=2
a_educ=19
smpl @all
smpl if ch12=8 and ch13=1
a_educ=19
smpl @all
smpl if ch12=8 and ch13=2 and educ=99
a_educ=15
smpl @all
smpl if ch12=8 and ch13=2 and educ=>3 and educ<90
a_educ=20
smpl @all
'EDUC^2
'series a2_educ
'a2_educ=a_educ^2
'EDAD^2
series ch062=0
ch062=ch06^2
'Consideraciones para Reducir el Sample
smpl @all if p21>0 and ch06=>16 and ch06<=65 and ch12>1 and ch12<9 and a_educ>=12 
'show a_educ p21
'INGRESO
series lp21=0
lp21=log(p21)
'EXPERIENCIA
series exper=0
exper = ch06 - a_educ- 6
series exper2=0
exper2=exper^2
'PONDERACIÓN
series sump=0
sump = @sum (pondera)
series psump=0
psump= pondera / sump
series pch06=0
pch06=ch06*psump
series pch062=0
pch062=ch062*psump
series pp21=0
pp21=p21*psump
series plp21=0
plp21=lp21*psump
series pocup=0
pocup= ocup*psump
series phombre=0
phombre=hombre*psump
series pmarried=0
pmarried=married*psump
series phoras=0
phoras=horas*psump
series pbeneficios=0
pbeneficios=beneficios*psump
series pa_hijo=0
pa_hijo=a_hijo*psump
series pa_educ=0
pa_educ=a_educ*psump
series pa2_educ=0
pa2_educ=a2_educ*psump
series pexper=0
pexper=exper*psump
series pactivities=0
pactivities=activities*psump
series pagricultura=0
pagricultura=agricultura*psump
series pmineria=0
pmineria=mineria*psump
series pindustria=0
pindustria=industria*psump
series penergia=0
penergia=energia*psump
series pconstruccion=0
pconstruccion=construccion*psump
series pcomercio=0
pcomercio=comercio*psump
series pcuentaprop=0
pcuentaprop=cuentaprop*psump
series pjefes=0
pjefes=jefes*psump
series ptrabajador=0
ptrabajador=trabajador*psump
series psinopmaq=0
psinopmaq=sinopmaq*psump
series popmaqyeq=0
popmaqyeq=opmaqyeq*psump
series pprofesional=0
pprofesional=profesional*psump
series ptecnico=0
ptecnico=tecnico*psump
series poperativo=0
poperativo=operativo*psump
series pexper2=0
pexper2=exper2*psump
series praccidentes=0
praccidentes=praccidentes*psump
series prmuerte=0
prmuerte=prmuerte*psump
'REGRESIÓN LINEAL
equation reg11.ls p21 c  ch06 ch062 a_educ horas raccidentes rmuerte
'equation reg111.ls pp21 c  pch06 pch062 a_educ phoras praccidentes prmuerte
'equation reg12.ls pp21 c  pch06 pch062 a_educ a2_educ phoras praccidentes prmuerte
'equation reg13.ls pp21 c (praccidentes*pch06) (praccidentes*pmarried) pch06 pch062 a_educ pa2_educ industria pa_hijo phoras praccidentes prmuerte

'REGRESIÓN CUADRÁTICA
'equation reg21.ls plp21 c  pch06 pch062 a_educ phoras praccidentes prmuerte
equation reg22.ls plp21 c pch06 pch062 a_educ a2_educ pa_hijo phoras praccidentes prmuerte
equation reg23.ls plp21 c (p*pch06) (p*pmarried) pch06 ch062 pa_educ pa2_educ pindustria pa_hijo phoras praccidentes prmuerte
'REGRESIÓN EXTENDIDA
equation reg31.ls plp21 c phombre pch06 pch062 pa_educ pa2_educ  pa_hijo phoras pbeneficios pexper pexper2 praccidentes prmuerte industria agricultura mineria energia construccion comercio
stop
'VALOR DE LA VIDA
matrix (13, 188 ) VEVJO
smpl if pactivities=01 and pcuentaprop=1   
equation reg1.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=0500 and pcuentaprop=1
equation reg2.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=0101 and pcuentaprop=1
equation reg3.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=0102 and pcuentaprop=1
equation reg4.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if activities=0103  and pcuentaprop=1
equation reg5.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=0104 and pcuentaprop=1
equation reg6.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=0105 and pcuentaprop=1
equation reg7.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if activities=02 and pcuentaprop=1
equation reg8.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=0200 and pcuentaprop=1
equation reg9.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=05 and pcuentaprop=1
equation reg10.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=10 and pcuentaprop=1
equation reg11.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1000 and pcuentaprop=1
equation reg12.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=11 and pcuentaprop=1
equation reg13.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1100 and pcuentaprop=1
equation reg14.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=12 and pcuentaprop=1
equation reg15.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1200 and pcuentaprop=1
equation reg16.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=13 and pcuentaprop=1
equation reg16.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1300 and pcuentaprop=1
equation reg17.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=14 and pcuentaprop=1
equation reg18.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1400 and pcuentaprop=1
equation reg19.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=15 and pcuentaprop=1
equation reg20.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities =1501 and pcuentaprop=1
equation reg21.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities =1502 and pcuentaprop=1
equation reg22.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities =1503 and pcuentaprop=1
equation reg23.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities =1504 and pcuentaprop=1
equation reg24.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities =1505 and pcuentaprop=1
equation reg25.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities =16 and pcuentaprop=1
equation reg26.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1600 and pcuentaprop=1
equation reg27.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=17 and pcuentaprop=1
equation reg28.ls pp21 pp
smpl @all
'No presenta observaciones
smpl if pactivities=1700 and pcuentaprop=1
equation reg29.ls pp21 pp
smpl @all
smpl if pactivities=18 and pcuentaprop=1
equation reg30.ls pp21 pp
smpl @all
smpl if pactivities=1800 and pcuentaprop=1
equation reg31.ls pp21 pp
smpl @all
smpl if pactivities=19 and pcuentaprop=1
equation reg32.ls pp21 pp
smpl @all
smpl if pactivities=1900 and pcuentaprop=1
equation reg33.ls pp21 pp
smpl @all
smpl if pactivities=1901 and pcuentaprop=1
equation reg34.ls pp21 pp
smpl @all
smpl if pactivities=1902 and pcuentaprop=1
equation reg35.ls pp21 pp
smpl @all
smpl if pactivities=20 and pcuentaprop=1
equation reg36.ls pp21 pp
smpl @all
smpl if pactivities=2000 and pcuentaprop=1
equation reg37.ls pp21 pp
smpl @all
smpl if pactivities=21 and pcuentaprop=1
equation reg38.ls pp21 pp
smpl @all
smpl if pactivities=2100 and pcuentaprop=1
equation reg39.ls pp21 pp
smpl @all
smpl if pactivities=22 and pcuentaprop=1
equation reg40.ls pp21 pp
smpl @all
smpl if pactivities=2200 and pcuentaprop=1
equation reg41.ls pp21 pp
smpl @all
smpl if pactivities=23 and pcuentaprop=1
equation reg42.ls pp21 pp
smpl @all
smpl if pactivities=2301 and pcuentaprop=1
equation reg43.ls pp21 pp
smpl @all
smpl if pactivities=2302 and pcuentaprop=1
equation reg44.ls pp21 pp
smpl @all
smpl if pactivities=2303 and pcuentaprop=1
equation reg45.ls pp21 pp
smpl @all
smpl if pactivities=24 and pcuentaprop=1
equation reg46.ls pp21 pp
smpl @all
smpl if pactivities=2401 and pcuentaprop=1
equation reg47.ls pp21 pp
smpl @all
smpl if pactivities=2402 and pcuentaprop=1
equation reg48.ls pp21 pp
smpl @all
smpl if pactivities=2403 and pcuentaprop=1
equation reg49.ls pp21 pp
smpl @all
smpl if pactivities=2409 and pcuentaprop=1
equation reg50.ls pp21 pp
smpl @all
smpl if pactivities=25 and pcuentaprop=1
equation reg51.ls pp21 pp
smpl @all
smpl if pactivities=2501 and pcuentaprop=1
equation reg52.ls pp21 pp
smpl @all
smpl if pactivities=2502 and pcuentaprop=1
equation reg53.ls pp21 pp
smpl @all
smpl if pactivities=26 and pcuentaprop=1
equation reg54.ls pp21 pp
smpl @all
smpl if pactivities=2601 and pcuentaprop=1
equation reg55.ls pp21 pp
smpl @all
smpl if pactivities=2609 and pcuentaprop=1
equation reg56.ls pp21 pp
smpl @all
smpl if pactivities=27 and pcuentaprop=1
equation reg57.ls pp21 pp
smpl @all
smpl if pactivities=2700 and pcuentaprop=1
equation reg58.ls pp21 pp
smpl @all
smpl if pactivities=28 and pcuentaprop=1
equation reg59.ls pp21 pp
smpl @all
smpl if pactivities=2800 and pcuentaprop=1
equation reg60.ls pp21 pp
smpl @all
smpl if pactivities=29 and pcuentaprop=1
equation reg61.ls pp21 pp
smpl @all
smpl if pactivities=2900 and pcuentaprop=1
equation reg62.ls pp21 pp
smpl @all
smpl if pactivities=30 and cuentaprop=1
equation reg63.ls pp21 pp
smpl @all
smpl if pactivities=3000 and pcuentaprop=1
equation reg64.ls pp21 pp
smpl @all
smpl if pactivities=3100 and pcuentaprop=1
equation reg65.ls pp21 pp
smpl @all
smpl if pactivities=31 and pcuentaprop=1
equation reg66.ls pp21 pp
smpl @all
smpl if pactivities=32 and pcuentaprop=1
equation reg67.ls pp21 pp
smpl @all
smpl if pactivities=3200 and pcuentaprop=1
equation reg68.ls pp21 pp
smpl @all
smpl if pactivities=33 and pcuentaprop=1
equation reg69.ls pp21 pp
smpl @all
smpl if pactivities=3300 and cuentaprop=1
equation reg70.ls pp21 pp
smpl @all
smpl if pactivities=34 and cuentaprop=1
equation reg71.ls pp21 pp
smpl @all
smpl if pactivities=3400 and pcuentaprop=1
equation reg72.ls pp21 pp
smpl @all
smpl if pactivities=35 and cuentaprop=1
equation reg73.ls pp21 pp
smpl @all
smpl if pactivities=3501 and pcuentaprop=1
equation reg74.ls pp21 pp
smpl @all
smpl if pactivities=3502 and pcuentaprop=1
equation reg75.ls pp21 pp
smpl @all
smpl if pactivities=3503 and pcuentaprop=1
equation reg76.ls pp21 pp
smpl @all
smpl if pactivities=3509 and pcuentaprop=1
equation reg77.ls pp21 pp
smpl @all
smpl if pactivities=36 and pcuentaprop=1
equation reg78.ls pp21 pp
smpl @all
smpl if pactivities=3601 and pcuentaprop=1
equation reg79.ls pp21 pp
smpl @all
smpl if pactivities=3609 and cuentaprop=1
equation reg80.ls pp21 pp
smpl @all
smpl if pactivities=37 and pcuentaprop=1
equation reg81.ls pp21 pp
smpl @all
smpl if pactivities=3700 and pcuentaprop=1
equation reg82.ls pp21 pp
smpl @all
smpl if pactivities=40 and pcuentaprop=1
equation reg83.ls pp21 pp
smpl @all
smpl if pactivities=4001 and pcuentaprop=1
equation reg84.ls pp21 pp
smpl @all
smpl if pactivities=4002 and pcuentaprop=1
equation reg85.ls pp21 pp
smpl @all
smpl if pactivities=41 and pcuentaprop=1
equation reg86.ls pp21 pp
smpl @all
smpl if pactivities=4100 and pcuentaprop=1
equation reg87.ls pp21 pp
smpl @all
smpl if pactivities=45 and pcuentaprop=1
equation reg88.ls pp21 pp
smpl @all
smpl if pactivities=4500 and pcuentaprop=1
equation reg89.ls pp21 pp
smpl @all
smpl if pactivities=50 and pcuentaprop=1
equation reg90.ls pp21 pp
smpl @all
smpl if pactivities=5001 and pcuentaprop=1
equation reg91.ls pp21 pp
smpl @all
smpl if pactivities=5002 and pcuentaprop=1
equation reg92.ls pp21 pp
smpl @all
smpl if pactivities=5002 and pcuentaprop=1
equation reg93.ls pp21 pp
smpl @all
smpl if pactivities=5003 and pcuentaprop=1
equation reg94.ls pp21 pp
smpl @all
smpl if pactivities=5004 and pcuentaprop=1
equation reg95.ls p21 p
smpl @all
smpl if pactivities=5005 and pcuentaprop=1
equation reg96.ls pp21 pp
smpl @all
smpl if activities=53 and cuentaprop=1
equation reg97.ls pp21 pp
smpl @all
smpl if pactivities=5301 and pcuentaprop=1
equation reg98.ls pp21 pp
smpl @all
smpl if pactivities=5302 and pcuentaprop=1
equation reg99.ls pp21 pp
smpl @all
smpl if pactivities=5303 and pcuentaprop=1
equation reg100.ls pp21 pp
smpl @all
smpl if pactivities=5304 and pcuentaprop=1
equation reg101.ls pp21 pp
smpl @all
smpl if pactivities=5305 and pcuentaprop=1
equation reg102.ls pp21 pp
smpl @all
smpl if pactivities=5306 and pcuentaprop=1
equation reg103.ls pp21 pp
smpl @all
smpl if pactivities=5307 and pcuentaprop=1
equation reg104.ls pp21 pp
smpl @all
smpl if pactivities=5308 and pcuentaprop=1
equation reg105.ls pp21 pp
smpl @all
smpl if pactivities=5309 and pcuentaprop=1
equation reg106.ls pp21 pp
smpl @all
smpl if pactivities=5310 and pcuentaprop=1
equation reg107.ls pp21 pp
smpl @all
smpl if pactivities=5310 and pcuentaprop=1
equation reg108.ls pp21 pp
smpl @all
smpl if pactivities=5311 and pcuentaprop=1
equation reg109.ls pp21 pp
smpl @all

smpl if pactivities=01 and ptrabajador=1   
equation rega1.ls pp21 pp
smpl @all
smpl if pactivities=0500 and ptrabajador=1 
equation rega2.ls pp21 pp
smpl @all
smpl if pactivities=0101 and ptrabajador=1 
equation rega3.ls pp21 pp
smpl @all
smpl if pactivities=0102 and ptrabajador=1 
equation rega4.ls pp21 pp
smpl @all
smpl if activities=0103  and ptrabajador=1 
equation rega5.ls pp21 pp
smpl @all
smpl if activities=0104 and ptrabajador=1 
equation rega6.ls pp21 pp
smpl @all
smpl if activities=0105 and ptrabajador=1 
equation rega7.ls pp21 pp
smpl @all
smpl if activities=02 and ptrabajador=1 
equation rega8.ls pp21 pp
smpl @all
smpl if activities=0200 and ptrabajador=1 
equation rega9.ls pp21 pp
smpl @all
smpl if activities=05 and ptrabajador=1 
equation rega10.ls pp21 pp
smpl @all
smpl if activities=10 and ptrabajador=1 
equation rega11.ls pp21 pp
smpl @all
smpl if activities=1000 and ptrabajador=1 
equation rega12.ls pp21 pp
smpl @all
smpl if activities=11 and ptrabajador=1 
equation rega13.ls pp21 pp
smpl @all
smpl if activities=1100 and ptrabajador=1 
equation rega14.ls pp21 pp
smpl @all
smpl if activities=12 and ptrabajador=1 
equation rega15.ls pp21 pp
smpl @all
smpl if activities=1200 and ptrabajador=1 
equation regaa16.ls pp21 pp
smpl @all
smpl if activities=13 and ptrabajador=1 
equation rega16.ls pp21 pp
smpl @all
smpl if activities=1300 and ptrabajador=1 
equation rega17.ls pp21 pp
smpl @all
smpl if activities=14 and ptrabajador=1 
equation rega18.ls pp21 pp
smpl @all
smpl if activities=1400 and ptrabajador=1 
equation rega19.ls pp21 pp
smpl @all
smpl if activities=15 and ptrabajador=1 
equation rega20.ls pp21 pp
smpl @all
smpl if activities =1501 and ptrabajador=1 
equation rega21.ls pp21 pp
smpl @all
smpl if activities =1502 and ptrabajador=1 
equation rega22.ls pp21 pp
smpl @all
smpl if activities =1503 and ptrabajador=1 
equation rega23.ls pp21 pp
smpl @all
smpl if activities =1504 and ptrabajador=1 
equation rega24.ls pp21 pp
smpl @all
smpl if activities =1505 and ptrabajador=1 
equation rega25.ls pp21 pp
smpl @all
smpl if activities =16 and ptrabajador=1 
equation rega26.ls pp21 pp
smpl @all
smpl if activities=1600 and ptrabajador=1 
equation rega27.ls pp21 pp
smpl @all
smpl if activities=17 and ptrabajador=1 
equation rega28.ls pp21 pp
smpl @all
pactivities=1700 and ptrabajador=1 
equation rega29.ls pp21 pp
smpl @all
smpl if pactivities=18 and ptrabajador=1 
equation rega30.ls pp21 pp
smpl @all
smpl if pactivities=1800 and ptrabajador=1 
equation rega31.ls pp21 pp
smpl @all
smpl if pactivities=19 and ptrabajador=1 
equation rega32.ls pp21 pp
smpl @all
smpl if pactivities=1900 and ptrabajador=1 
equation rega33.ls pp21 pp
smpl @all
smpl if pactivities=1901 and ptrabajador=1 
equation rega34.ls pp21 pp
smpl @all
smpl if pactivities=1902 and ptrabajador=1 
equation rega35.ls pp21 pp
smpl @all
smpl if pactivities=20 and ptrabajador=1 
equation rega36.ls pp21 pp
smpl @all
smpl if pactivities=2000 and ptrabajador=1 
equation rega37.ls pp21 pp
smpl @all
smpl if pactivities=21 and ptrabajador=1 
equation rega38.ls pp21 pp
smpl @all
smpl if pactivities=2100 and ptrabajador=1 
equation rega39.ls pp21 pp
smpl @all
smpl if pactivities=22 and ptrabajador=1 
equation rega40.ls pp21 pp
smpl @all
smpl if pactivities=2200 and ptrabajador=1 
equation rega41.ls pp21 pp
smpl @all
smpl if pactivities=23 and ptrabajador=1 
equation rega42.ls pp21 pp
smpl @all
smpl if pactivities=2301 and ptrabajador=1 
equation rega43.ls pp21 pp
smpl @all
smpl if pactivities=2302 and ptrabajador=1 
equation rega44.ls pp21 pp
smpl @all
smpl if pactivities=2303 and ptrabajador=1 
equation rega45.ls pp21 pp
smpl @all
smpl if pactivities=24 and ptrabajador=1 
equation rega46.ls pp21 pp
smpl @all
smpl if pactivities=2401 and ptrabajador=1 
equation rega47.ls pp21 pp
smpl @all
smpl if pactivities=2402 and ptrabajador=1 
equation rega48.ls pp21 pp
smpl @all
smpl if pactivities=2403 and ptrabajador=1 
equation rega49.ls pp21 pp
smpl @all
smpl if pactivities=2409 and ptrabajador=1 
equation rega50.ls pp21 pp
smpl @all
smpl if pactivities=25 and ptrabajador=1 
equation rega51.ls pp21 pp
smpl @all
smpl if pactivities=2501 and ptrabajador=1 
equation rega52.ls pp21 pp
smpl @all
smpl if pactivities=2502 and ptrabajador=1 
equation rega53.ls pp21 pp
smpl @all
smpl if pactivities=26 and ptrabajador=1 
equation rega54.ls pp21 pp
smpl @all
smpl if pactivities=2601 and ptrabajador=1 
equation rega55.ls pp21 pp
smpl @all
smpl if pactivities=2609 and ptrabajador=1 
equation rega56.ls pp21 pp
smpl @all
smpl if pactivities=27 and ptrabajador=1 
equation rega57.ls pp21 pp
smpl @all
smpl if pactivities=2700 and ptrabajador=1 
equation rega58.ls pp21 pp
smpl @all
smpl if pactivities=28 and ptrabajador=1 
equation rega59.ls pp21 pp
smpl @all
smpl if pactivities=2800 and ptrabajador=1 
equation rega60.ls pp21 pp
smpl @all
smpl if pactivities=29 and ptrabajador=1 
equation rega61.ls pp21 pp
smpl @all
smpl if pactivities=2900 and ptrabajador=1 
equation rega62.ls pp21 pp
smpl @all
smpl if pactivities=30 and ptrabajador=1 
equation rega63.ls pp21 pp
smpl @all
smpl if pactivities=3000 and ptrabajador=1 
equation rega64.ls pp21 pp
smpl @all
smpl if pactivities=3100 and ptrabajador=1 
equation rega65.ls pp21 pp
smpl @all
smpl if pactivities=31 and ptrabajador=1 
equation rega66.ls pp21 pp
smpl @all
smpl if pactivities=32 and ptrabajador=1 
equation rega67.ls pp21 pp
smpl @all
smpl if pactivities=3200 and ptrabajador=1 
equation rega68.ls pp21 pp
smpl @all
smpl if pactivities=33 and ptrabajador=1 
equation regaa69.ls pp21 pp
smpl @all
smpl if pactivities=3300 and ptrabajador=1 
equation rega70.ls pp21 pp
smpl @all
smpl if pactivities=34 and ptrabajador=1 
equation rega71.ls pp21 pp
smpl @all
smpl if pactivities=3400 and ptrabajador=1 
equation rega72.ls pp21 pp
smpl @all
smpl if pactivities=35 and ptrabajador=1 
equation rega73.ls pp21 pp
smpl @all
smpl if pactivities=3501 and ptrabajador=1 
equation rega74.ls pp21 pp
smpl @all
smpl if pactivities=3502 and ptrabajador=1 
equation rega75.ls pp21 pp
smpl @all
smpl if pactivities=3503 and ptrabajador=1 
equation rega76.ls pp21 pp
smpl @all
smpl if pactivities=3509 and ptrabajador=1 
equation rega77.ls pp21 pp
smpl @all
smpl if pactivities=36 and ptrabajador=1 
equation rega78.ls pp21 pp
smpl @all
smpl if pactivities=3601 and ptrabajador=1 
equation rega79.ls pp21 pp
smpl @all
smpl if pactivities=3609 and ptrabajador=1 
equation rega80.ls pp21 pp
smpl @all
smpl if pactivities=37 and ptrabajador=1 
equation rega81.ls pp21 pp
smpl @all
smpl if pactivities=3700 and ptrabajador=1 
equation rega82.ls pp21 pp
smpl @all
smpl if pactivities=40 and ptrabajador=1 
equation rega83.ls pp21 pp
smpl @all
smpl if pactivities=4001 and ptrabajador=1 
equation rega84.ls pp21 pp
smpl @all
smpl if pactivities=4002 and ptrabajador=1 
equation rega85.ls pp21 pp
smpl @all
smpl if pactivities=41 and ptrabajador=1 
equation rega86.ls pp21 pp
smpl @all
smpl if pactivities=4100 and ptrabajador=1 
equation rega87.ls pp21 pp
smpl @all
smpl if pactivities=45 and ptrabajador=1 
equation rega88.ls pp21 pp
smpl @all
smpl if pactivities=4500 and ptrabajador=1 
equation rega89.ls pp21 pp
smpl @all
smpl if pactivities=50 and ptrabajador=1 
equation rega90.ls pp21 pp
smpl @all
smpl if pactivities=5001 and ptrabajador=1 
equation rega91.ls pp21 pp
smpl @all
smpl if pactivities=5002 and ptrabajador=1 
equation rega92.ls pp21 pp
smpl @all
smpl if pactivities=5002 and ptrabajador=1 
equation rega93.ls pp21 pp
smpl @all
smpl if pactivities=5003 and ptrabajador=1 
equation rega94.ls pp21 pp
smpl @all
smpl if pactivities=5004 and ptrabajador=1 
equation rega95.ls p21 p
smpl @all
smpl if pactivities=5005 and ptrabajador=1 
equation rega96.ls pp21 pp
smpl @all
smpl if pactivities=53 and ptrabajador=1 
equation rega97.ls pp21 pp
smpl @all
smpl if pactivities=5301 and ptrabajador=1 
equation rega98.ls pp21 pp
smpl @all
smpl if pactivities=5302 and ptrabajador=1 
equation rega99.ls pp21 pp
smpl @all
smpl if pactivities=5303 and ptrabajador=1 
equation rega100.ls pp21 pp
smpl @all
smpl if pactivities=5304 and ptrabajador=1 
equation rega101.ls pp21 pp
smpl @all
smpl if pactivities=5305 and ptrabajador=1 
equation rega102.ls pp21 pp
smpl @all
smpl if pactivities=5306 and ptrabajador=1 
equation rega103.ls pp21 pp
smpl @all
smpl if pactivities=5307 and ptrabajador=1 
equation rega104.ls pp21 pp
smpl @all
smpl if pactivities=5308 and ptrabajador=1 
equation rega105.ls pp21 pp
smpl @all
smpl if pactivities=5309 and ptrabajador=1 
equation rega106.ls pp21 pp
smpl @all
smpl if pactivities=5310 and ptrabajador=1 
equation rega107.ls pp21 pp
smpl @all
smpl if pactivities=5310 and ptrabajador=1 
equation rega108.ls pp21 pp
smpl @all
smpl if pactivities=5311 and ptrabajador=1 
equation rega109.ls pp21 pp
smpl @all
