-
Notifications
You must be signed in to change notification settings - Fork 0
/
Section_E.do
1366 lines (1054 loc) · 34.8 KB
/
Section_E.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// Project: FICP_Survey_Project -- Section E
///-----------------------------------------------------------------------------
///-----------------------------------------------------------------------------
/// Program Setup
///-----------------------------------------------------------------------------
version 16 // Set Version number for backward compatibility
set more off // Dsisble partitioned output
clear all // Start with a clean slate
set linesize 80 // Line size limit to make output more readable
macro drop _all // Clear all macros
capture log close // Close existing log files
///-----------------------------------------------------------------------------
///-----------------------------------------------------------------------------
/* RUNS THE FOLLOWING:
0. Import and merge files
1. Checks skip logic and missing values by section
2. Cleaning variables by section
//Finds long variable include
//Saves original variables order
//General cleaning
3. Label variables
4. Order variables in original sequence and saves dta
*/
///-----------------------------------------------------------------------------
//Set directory
include "Global_macro_A.do"
else {
global base "D:/Documents/Consultorias/World_Bank/FICP_Survey_Project"
cd "$base"
global data "D:/Documents/Consultorias/World_Bank/FICP_Survey_Project/Data/Database `dir'"
global output "D:/Documents/Consultorias/World_Bank/FICP_Survey_Project/OUTPUT"
}
//Install required packages
//ssc install listtab
/////////////////////////////////////////////////////////////
//// 1. Checks skip logic and missing values by section ////
////////////////////////////////////////////////////////////
//E. Enabling Regulatory Framework for Financial Inclusion
use "$data/e_regulatory_framework_relevant_-survey.dta", clear
merge 1:1 country_code year status using "$data/b_financial_sector_landscape_-survey.dta"
keep if status == "Submitted to Review" // 143 observations deleted
keep if year == 2022 // 0 observations deleted
drop _merge
merge 1:1 country_code using "$base/WB_CountryClassification.dta"
keep if year == 2022 // 173 observations deleted
//assert c(N) == 91
//Create output files and setting charinclude
global filename "FICP_survey_Section_E_HFC_"
global filedate : di %tdCCYY.NN.DD date(c(current_date), "DMY") // date of the report
local hfc_file "$base/Data/$filename$filedate.csv"
export excel using "$base/Data/$filename$filedate.csv", replace
foreach var of varlist _all {
char `var'[charname] "`var'"
}
//Check duplicate IDs
sort region country_code
capture drop id_dup
duplicates tag country_code, generate(id_dup) // Sort and Check for unique identifiers
if _rc != 0 di "observations by country are NOT unique in country_code"
else if _rc == 0 di "observations by country are unique in this section"
listtab $id_info using `hfc_file' if id_dup == 1, delimiter(",") replace headlines(" ,Duplicate Country ID") headchars(charname)
///E1 Please indicate which types of financial service providers are allowed to contract third-party agents to perform some of their transactions. Check all that apply for each type of financial service provider
#delimit ;
local var_1 e2_a_1
e2_a_2
e2_a_3
e2_a_4
e2_a_5
e2_a_6
e2_b_1
e2_b_2
e2_b_3
e2_b_4
e2_b_5
e2_b_6
e2_c_1
e2_c_2
e2_c_3
e2_c_4
e2_c_5
e2_c_6
e2_d_1
e2_d_2
e2_d_3
e2_d_4
e2_d_5
e2_d_6
e2_e_1
e2_e_2
e2_e_3
e2_e_4
e2_e_5
e2_e_6
e2_f_1
e2_f_2
e2_f_3
e2_f_4
e2_f_5
e2_f_6
e2_g_1
e2_g_2
e2_g_3
e2_g_4
e2_g_5
e2_g_6
e2_h_1
e2_h_2
e2_h_3
e2_h_4
e2_h_5
e2_h_6;
#delimit cr
#delimit ;
local var_2 b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6;
#delimit cr
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E1") headchars(charname)
mdesc `var_1'
/* No need to condition on b1_1/6
//Consitency checks of e1_a/h_1/6, only IF b1_1/6 == Yes
capture drop consischeck
gen consischeck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace consischeck = 1 if (`a' != "NA" & `b' == "Yes") //Dobule check, is this conditional OK???
}
br $id_info `var_1' consischeck `var_2' if consischeck == 1
listtab $id_info `var_1' consischeck `var_2' if consischeck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Consitency check of E1 variables: Answer accoding to b1_1/6") headchars(charname)
*/
///E2. If financial service providers are allowed to have agents, please specify which type of rules apply regulating the relationships between the financial service provider, the agent, and the consumer:
#delimit ;
local var_1 e2_a_1
e2_a_2
e2_a_3
e2_a_4
e2_a_5
e2_a_6
e2_b_1
e2_b_2
e2_b_3
e2_b_4
e2_b_5
e2_b_6
e2_c_1
e2_c_2
e2_c_3
e2_c_4
e2_c_5
e2_c_6
e2_d_1
e2_d_2
e2_d_3
e2_d_4
e2_d_5
e2_d_6
e2_e_1
e2_e_2
e2_e_3
e2_e_4
e2_e_5
e2_e_6
e2_f_1
e2_f_2
e2_f_3
e2_f_4
e2_f_5
e2_f_6
e2_g_1
e2_g_2
e2_g_3
e2_g_4
e2_g_5
e2_g_6
e2_h_1
e2_h_2
e2_h_3
e2_h_4
e2_h_5
e2_h_6;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E2") headchars(charname)
mdesc `var_1'
///E3. If any of the following terms are explicitly defined in law or regulation, please indicate the [bases on which each term] is defined.
#delimit ;
local var_1 e4_a_1
e4_a_2
e4_a_3
e4_a_4
e4_b_1
e4_b_2
e4_b_3
e4_b_4
e4_c_1
e4_c_2
e4_c_3
e4_c_4
e4_d_1
e4_d_2
e4_d_3
e4_d_4
e4_e_1
e4_e_2
e4_e_3
e4_e_4
e4_f_1
e4_f_2
e4_f_3
e4_f_4;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E3") headchars(charname)
mdesc `var_1'
///E4. Please indicate if there is a framework regarding insurance activities that:
#delimit ;
local var_1 e4_2_a
e4_2_b
e4_2_c
e4_2_d
e4_2_e
e4_2_f;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E4") headchars(charname)
mdesc `var_1'
///E5. Do regulations include tiered branching requirements that allow financial service providers to establish and operate modified or simplified branches (e.g. mobile branches, sub-branches, outlets)? Note that third-party agents are not considered as modified or simplified branches.
#delimit ;
local var_1 e5_1
e5_2
e5_3
e5_4
e5_5
e5_6;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_5 b1_6
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E5") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E5")headchars(charname)
///E6. Do financial service providers have access, or report, to a credit bureau or credit registry? A credit bureau is a privately owned company which collects information relating to the credit ratings of individuals and makes it available to banks, finance companies, etc. Credit registries, the other main type of credit reporting institutions, tend to be public entities, managed by bank supervisors or central banks. Check all that apply for each type of financial service provider.
#delimit ;
local var_1 e6_a_1
e6_a_2
e6_a_3
e6_a_4
e6_a_5
e6_a_6
e6_b_1
e6_b_2
e6_b_3
e6_b_4
e6_b_5
e6_b_6
e6_c_1
e6_c_2
e6_c_3
e6_c_4
e6_c_5
e6_c_6
e6_d_1
e6_d_2
e6_d_3
e6_d_4
e6_d_5
e6_d_6
e6_e_1
e6_e_2
e6_e_3
e6_e_4
e6_e_5
e6_e_6
e6_f_1
e6_f_2
e6_f_3
e6_f_4
e6_f_5
e6_f_6;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_5 b1_6
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E6") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E6")headchars(charname)
///E7. Are financial service providers subject to explicit caps on interest rates or other limitations on loan pricing, e.g. maximum profit margins, maximum spread or restrictions on loan fees and charges? Select one option for each type of financial service provider.
#delimit ;
local var_1 e7_a_1
e7_a_2
e7_a_3
e7_a_4
e7_a_5
e7_a_6
e7_b_1
e7_b_2
e7_b_3
e7_b_4
e7_b_5
e7_b_6
e7_c_1
e7_c_2
e7_c_3
e7_c_4
e7_c_5
e7_c_6;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_5 b1_6
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E7") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E7")headchars(charname)
///E8. Does regulation explicitly require authorization of new or modified financial products?
#delimit ;
local var_1 e8_a_1
e8_a_2
e8_a_3
e8_a_4
e8_a_5
e8_a_6
e8_b_1
e8_b_2
e8_b_3
e8_b_4
e8_b_5
e8_b_6
e8_c_1
e8_c_2
e8_c_3
e8_c_4
e8_c_5
e8_c_6;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_5 b1_6
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E8") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E8")headchars(charname)
///E9. Is there a requirement in law or regulation that customers’ e-money funds be separated from the funds of the e-money issuer?
//Missing values
capture drop mcheck
gen mcheck = 0
replace mcheck = 1 if missing(e9_1)
listtab $id_info e9_1 if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E9") headchars(charname)
mdesc `var_1'
///E10a. Is it specified in law or regulation which type of account must be used to safeguard e-money funds? Please mark all that apply.
#delimit ;
local var_1 e10_1_1_trustacco
e10_1_2_escrowacc
e10_1_4_regularac
e10_1_5_accountat
e10_1_6_other
e10_1_7_doesnots;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E10a") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
replace skipcheck = 1 if (missing(e10_1_specify) & e10_1_6_other == "Yes")
listtab $id_info e10_1_specify skipcheck e10_1_6_other if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E10a")headchars(charname)
///E11. Are non-bank e-money issuers prohibited by law or regulation from using customer funds for purposes other than redeeming e-money and executing fund transfers?
//Missing values
capture drop mcheck
gen mcheck = 0
replace mcheck = 1 if missing(e11_1)
listtab $id_info e11_1 if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E11") headchars(charname)
mdesc `var_1'
///E12. Are non-bank e-money issuers permitted by law or regulation to pay interest on customers’ e-money accounts or share profits with their e-money customers? Please mark all that apply.
#delimit ;
local var_1 e12_1_1_thelawre
e12_1_2_thelawre
e12_1_3_neither
e12_1_4_notapplic;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E12") headchars(charname)
mdesc `var_1'
///E13.1 Are there legal and/or regulatory requirements specifying which documents individuals must submit for opening a transaction account with a financial service provider?
#delimit ;
local var_1 e13_1
e13_2
e13_3
e13_4
e13_5;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_6
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E13.1") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E13.1")headchars(charname)
///E13.2 Are there legal and/or regulatory requirements specifying which documents individuals must submit for opening an e-money account with a financial service provider?
#delimit ;
local var_1 e13_2_1
e13_2_2
e13_2_3
e13_2_4
e13_2_5;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_6
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E13.2") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E13.2")headchars(charname)
///E14. According to current law or regulation, which of the following information is required to open the lowest risk-based transaction or e-money account and what documents are required/accepted to verify it?
#delimit ;
local var_1 e14_a_1_1
e14_a_1_2
e14_a_1_3
e14_a_1_4
e14_a_1_5
e14_a_1_6
e14_b_1_1
e14_b_1_2
e14_b_1_3
e14_b_1_4
e14_b_1_5
e14_b_1_6
e14_c_1_1
e14_c_1_2
e14_c_1_3
e14_c_1_4
e14_c_1_5
e14_c_1_6
e14_d_1_1
e14_d_1_2
e14_d_1_3
e14_d_1_4
e14_d_1_5
e14_d_1_6
e14_e_1_1
e14_e_1_2
e14_e_1_3
e14_e_1_4
e14_e_1_5
e14_e_1_6;
#delimit cr
#delimit ;
local var_2 b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6
b1_1
b1_2
b1_3
b1_4
b1_5
b1_6;
#delimit cr
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E14") headchars(charname)
mdesc `var_1'
//Comment: e14_f_1 e14_f_2 e14_f_3 e14_f_4 e14_f_5 e14_f_6, other please [Text]
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E14")headchars(charname)
///E15a Can financial service providers verify a customer’s identity through digital means in the context of transaction or e-money account opening?
//Missing values
capture drop mcheck
gen mcheck = 0
replace mcheck = 1 if missing(e14_2_1)
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E15a") headchars(charname)
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
replace skipcheck = 1 if missing(e14_2_1_explain)& e14_2_1 == "Yes other"
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E15a")headchars(charname)
///E15b What information can be verified through digital means? (Select all that apply)
#delimit ;
local var_1 e15_b_1_name
e15_b_2_sexgender
e15_b_3_dateofbi
e15_b_4_address
e15_b_5_nationalit
e15_b_6_validitya;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E15b") headchars(charname)
mdesc `var_1'
/* Checked, no skipping needed
//Skip value, missing only // Double check!!!!
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (`a' != "NA" & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E15b")headchars(charname)
*/
///E16a. Can financial service providers use biometric verification (e.g., using fingerprints, face, or iris) to confirm the identity of a customer?
//Missing values
capture drop mcheck
gen mcheck = 0
replace mcheck = 1 if missing(e16_a_1)
listtab $id_info e16_a_1 if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E16a") headchars(charname)
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
replace skipcheck = 1 if missing(e16_a_1_explain)& e16_a_1 == "Yes other"
listtab $id_info e16_a_1_explain skipcheck e16_a_1 if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E16a")headchars(charname)
///E16b. Are financial service providers charged a fee for digital identity verification / authentication by the identity provider(s)?
//Missing values
capture drop mcheck
gen mcheck = 0
replace mcheck = 1 if missing(e16_b_1)
capture assert mcheck == 1
listtab $id_info e16_b_1 if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E16b") headchars(charname)
///E17. What elements of a risk-based approach to AML/CFT regulation have been implemented? Please mark all that apply
#delimit ;
local var_1 e17_a_1_1
e17_a_1_2
e17_a_1_3
e17_a_1_4
e17_a_1_5
e17_b_1_1
e17_b_1_2
e17_b_1_3
e17_b_1_4
e17_b_1_5
e17_c_1_1
e17_c_1_2
e17_c_1_3
e17_c_1_4
e17_c_1_5
e17_d_1_1
e17_d_1_2
e17_d_1_3
e17_d_1_4
e17_d_1_5;
#delimit cr
local var_2 b1_1 b1_2 b1_3 b1_4 b1_6
local var_3 e17_d_2_1 e17_d_2_2 e17_d_2_3 e17_d_2_4 e17_d_2_5
local n : word count `var_2'
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E17") headchars(charname)
mdesc `var_1'
//Skip value, missing only
capture drop skipcheck
gen skipcheck = 0
forvalues i = 1/`n' {
local a : word `i' of `var_1'
local b : word `i' of `var_2'
dis "`a'" "`b'"
replace skipcheck = 1 if (missing(`a') & `b' == "Yes")
}
listtab $id_info `var_1' skipcheck `var_2' if skipcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Skip values in E17")headchars(charname)
/*
capture drop mcheck
gen mcheck = 0
replace mcheck = 1 if missing(`var_3') & `var_1' == "Yes" //Double check!!
*/
///E18. What simplified CDD measures for account opening are allowed? Please mark all that apply
#delimit ;
local var_1 e18_a_1
e18_b_1_1_bylaw
e18_b_1_2_providerd
e18_a_2
e18_b_2_1_bylaw
e18_b_2_2_providerd
e18_a_3
e18_b_3_1_bylaw
e18_b_3_2_providerd
e18_a_4
e18_b_4_1_bylaw
e18_b_4_2_providerd;
#delimit cr
//Missing values
capture drop mcheck
gen mcheck = 0
foreach i of local var_1 {
replace mcheck = 1 if missing(`i')
}
listtab $id_info `var_1' if mcheck == 1, delimiter(",") appendto(`hfc_file') replace headlines(" ,Missing values in E18") headchars(charname)
mdesc `var_1'
//Double check!!