Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(smident1 smident2) . . . . . . 5 5 2 2 4 4 4 5 4 4 1 1 1 2 1 1 2 3 1 3 2 3 3 4 4 3 1 2 3 3 4 3 2 3 3 4 2 3 2 3 4 5 2 3 3 5 3 2 1 2 1 1 4 5 3 2 5 5 1 1 3 3 3 3 3 3 4 4 3 3 2 3 2 2 3 5 3 3 1 4 1 2 1 2 2 1 2 2 5 5 . . 3 4 1 1 2 3 3 4 3 2 2 2 . . 2 3 . . 3 4 4 4 4 4 4 4 4 3 4 3 2 2 4 2 3 4 3 3 3 4 1 2 3 4 2 2 2 2 4 5 3 4 3 3 3 3 5 4 5 5 3 4 2 3 4 4 1 2 1 1 1 3 3 5 3 3 4 4 3 3 5 5 3 4 1 2 4 3 1 1 3 3 3 2 4 4 2 1 1 5 5 5 end label values smident1 smident1 label def smident1 1 "not at all", modify label def smident1 5 "completely", modify label values smident2 smident2 label def smident2 1 "not at all", modify label def smident2 2 "2", modify label def smident2 3 "3", modify label def smident2 4 "4", modify label def smident2 5 "completely", modify recode smident1 smident2 (. = .a) cap which fre if _rc ssc install fre codebook, problems fre smident1 smident2 label list smident1 smident2
Code:
. codebook, problems Potential problems in dataset [unnamed] Potential problem Variables ---------------------------------------------------- incompletely labeled vars smident1 smident2 ---------------------------------------------------- . fre smident1 smident2 smident1 ------------------------------------------------------------------- | Freq. Percent Valid Cum. ----------------------+-------------------------------------------- Valid 1 not at all | 19 19.00 20.21 20.21 2 | 19 19.00 20.21 40.43 3 | 30 30.00 31.91 72.34 4 | 19 19.00 20.21 92.55 5 completely | 7 7.00 7.45 100.00 Total | 94 94.00 100.00 Missing .a | 6 6.00 Total | 100 100.00 ------------------------------------------------------------------- smident2 ------------------------------------------------------------------- | Freq. Percent Valid Cum. ----------------------+-------------------------------------------- Valid 1 not at all | 9 9.00 9.57 9.57 2 2 | 20 20.00 21.28 30.85 3 3 | 29 29.00 30.85 61.70 4 4 | 22 22.00 23.40 85.11 5 completely | 14 14.00 14.89 100.00 Total | 94 94.00 100.00 Missing .a | 6 6.00 Total | 100 100.00 ------------------------------------------------------------------- . label list smident1 smident2 smident1: 1 not at all 5 completely smident2: 1 not at all 2 2 3 3 4 4 5 completely
Code:
. lab def smident2 2 "2nd" 3 "3rd" 4 "4th", modify . codebook, problems Potential problems in dataset [unnamed] Potential problem Variables -------------------------------------------------- incompletely labeled vars smident1 -------------------------------------------------- . fre smident1 smident2 smident1 ------------------------------------------------------------------- | Freq. Percent Valid Cum. ----------------------+-------------------------------------------- Valid 1 not at all | 19 19.00 20.21 20.21 2 | 19 19.00 20.21 40.43 3 | 30 30.00 31.91 72.34 4 | 19 19.00 20.21 92.55 5 completely | 7 7.00 7.45 100.00 Total | 94 94.00 100.00 Missing .a | 6 6.00 Total | 100 100.00 ------------------------------------------------------------------- smident2 ------------------------------------------------------------------- | Freq. Percent Valid Cum. ----------------------+-------------------------------------------- Valid 1 not at all | 9 9.00 9.57 9.57 2 2nd | 20 20.00 21.28 30.85 3 3rd | 29 29.00 30.85 61.70 4 4th | 22 22.00 23.40 85.11 5 completely | 14 14.00 14.89 100.00 Total | 94 94.00 100.00 Missing .a | 6 6.00 Total | 100 100.00 -------------------------------------------------------------------
0 Response to -codebook, problems- with problems indicating incompletely labeled vars
Post a Comment