-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path#3 Lamina 6 ERESTEL 2021.do
193 lines (121 loc) · 4.04 KB
/
#3 Lamina 6 ERESTEL 2021.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
// Lámina 6 del PPT2021 ERESTEL:
// Fuente: https://repositorio.osiptel.gob.pe/handle/20.500.12630/808
// PERÚ: EQUIPAMIENTO TIC EN EL HOGAR"
**************************************
global ruta "XXXXXXX"
cd $ruta
*ACCESO A TELEVISIÓN
*========================
//Año 2016
use hogaresOSIPTEL2016.dta,clear
tab p131 ambito [iw=fact_exp], nofreq col
//Año 2018-2021
foreach x in 18 19 21 {
di "**** AÑO 20`x' **** "
use hogaresOSIPTEL20`x'.dta,clear
tab p13_1 ambito [iw=fact_exp], nofreq col
di "*********************"
}
**ACCESO A RADIO
*================
// Año 2016
use hogaresOSIPTEL2016.dta,clear
tab p132 ambito [iw=fact_exp], nofreq col
// Año 2018-2019
foreach x in 18 19 {
di "**** AÑO 20`x' **** "
use hogaresOSIPTEL20`x'.dta,clear
tab p13_2_01 ambito [iw=fact_exp], nofreq col
di "*********************"
}
// Año 2021
use hogaresOSIPTEL2021.dta,clear
tab p13_2_1 ambito [iw=fact_exp], nofreq col
*===================================
*ACCESO A COMPUTADORA DE ESCRITORIO
*====================================
//Año 2016
use hogaresOSIPTEL2016.dta,clear
tab p133 ambito [iw=fact_exp], nofreq col
//Año 2018-2019
foreach x in 18 19 {
di "**** AÑO 20`x' **** "
use hogaresOSIPTEL20`x'.dta,clear
tab p13_2_02 ambito [iw=fact_exp], nofreq col
di "*********************"
}
//Año 2021
use hogaresOSIPTEL2021.dta,clear
tab p13_3_1 ambito [iw=fact_exp], nofreq col
*==============================
**REPRODUCTOS DE DVD/BLUE-RAY
*==============================
//Año 2016
use hogaresOSIPTEL2016.dta,clear
tab p135 ambito [iw=fact_exp], nofreq col
//Año 2018-2019
foreach x in 18 19 {
di "**** AÑO 20`x' **** "
use hogaresOSIPTEL20`x'.dta,clear
tab p13_2_04 ambito [iw=fact_exp], nofreq col
di "*********************"
}
//Año 2021
use hogaresOSIPTEL2021.dta,clear
tab p13_5_1 ambito [iw=fact_exp], nofreq col
*================================================
**ACCESO A LAPTOP, ULTRABOOK NOTEBOOK O ULTRABOOK
*================================================
//Año 2016
use hogaresOSIPTEL2016.dta,clear
tab p134 ambito [iw=fact_exp], nofreq col
//Año 2018-2019
foreach x in 18 19 {
di "**** AÑO 20`x' **** "
use hogaresOSIPTEL20`x'.dta,clear
tab p13_2_03 ambito [iw=fact_exp], nofreq col
di "*********************"
}
//Año 2021
use hogaresOSIPTEL2021.dta,clear
tab p13_4_1 ambito [iw=fact_exp], nofreq col
*=========================
* ACCESO A TABLET
*========================
//Año 2016
use hogaresOSIPTEL2016.dta,clear
tab p136 ambito [iw=fact_exp], nofreq col
//Año 2018-2019
foreach x in 18 19 {
di "**** AÑO 20`x' **** "
use hogaresOSIPTEL20`x'.dta,clear
tab p13_2_05 ambito [iw=fact_exp], nofreq col
di "*********************"
}
//Año 2021
use hogaresOSIPTEL2021.dta,clear
tab p13_6_1 ambito [iw=fact_exp], nofreq col
* ====================
**ACCESO A SMARTPHONE
* ====================
foreach x in 16 18 19 21 {
use OSIPTEL_personas20`x'.dta,clear
gener PersonaConSmart=0 if (v2==2 | v2==3) //Personas (a partir de 12 años) que tienen celular pero que no es smartphone (o no saben)
replace PersonaConSmart=1 if v2==1 //Personas (a partir de 12 años) que tienen un celular smartphone
replace PersonaConSmart=0 if v1==2 //Personas (a partir de 12 años) que no tienen celular
replace PersonaConSmart=0 if v1==. // Todos los que son menores de 12 años automaticamente no tienen smartphone
bysort ficha_st: egen Nsmart=sum(PersonaConSmart)
label variable Nsmart "# de smartphone X hogar"
collapse (max) Nsmart, by(ficha_st)
sort ficha_st
save mcs20`x',replace
use hogaresOSIPTEL20`x'.dta, clear
sort ficha_st
merge ficha_st using "mcs20`x'.dta"
gener rv2=0 if Nsmart==0
replace rv2=1 if Nsmart!=0
di "**** AÑO 20`x' **** "
//Acceso a smatphone
tab rv2 ambito [iw=fact_exp], nofreq col
}
******************************** FIN :D