I forgot to add a sample of the dataset:
Also, please delete racreci3 from the code in the previous post. The true code should be:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(age_p sex_r married edu_cat poor2 emp_stat) byte notcov float(usupl stay_us black_african) 80 0 0 1 1 0 2 1 . 0 56 0 1 3 3 0 2 1 1 0 46 0 1 3 3 1 2 1 . 0 22 0 0 2 3 1 2 1 . 0 31 0 0 2 3 0 2 1 . 0 56 0 0 1 3 1 2 1 . 0 58 0 0 3 3 1 2 1 . 0 55 0 0 2 1 0 2 1 . 0 56 0 1 3 3 0 2 1 . 0 58 0 1 1 2 0 2 1 . 0 78 0 0 1 2 0 2 1 2 0 62 0 1 1 3 0 2 1 . 0 33 0 0 2 3 1 2 0 . 0 59 0 1 1 3 1 1 0 . 0 68 0 0 2 1 0 2 1 . 0 20 0 0 1 1 0 1 1 . 0 73 0 0 1 2 0 2 1 . 0 64 0 0 2 3 1 2 1 . 0 67 0 0 3 2 1 2 0 . 0 55 0 0 3 3 0 1 0 . 0 60 0 0 3 3 1 2 1 . 0 62 0 0 1 2 0 1 1 . 0 27 0 0 2 3 1 1 0 . 0 76 0 0 . 3 0 2 1 1 1 51 0 0 1 3 1 1 0 . 0 35 0 0 2 3 1 2 1 2 1 34 0 1 3 3 1 2 1 . 0 45 0 1 1 3 0 1 1 . 0 67 0 0 3 3 0 2 1 2 0 24 0 0 3 3 0 2 1 . 0 48 0 0 3 3 1 2 1 . 0 38 0 0 1 3 0 2 1 2 1 27 0 0 3 3 1 2 1 . 0 54 0 0 1 2 1 2 1 . 0 61 0 0 1 2 0 2 1 . 0 33 0 1 3 3 1 2 1 . 0 56 0 0 1 2 1 2 1 . 0 28 0 0 2 1 0 2 1 . 0 77 0 0 2 3 0 2 1 . 0 81 0 0 1 3 0 2 1 . 0 32 0 0 2 2 1 2 1 2 1 58 0 1 2 3 1 2 1 . 0 50 0 1 1 3 0 2 1 . 0 35 0 1 2 2 0 2 1 . 0 52 0 0 3 3 1 2 1 . 0 59 0 1 3 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2 1 . 0 24 0 0 1 3 0 1 0 . 0 66 0 0 2 2 1 2 1 . 0 26 0 1 1 1 1 1 1 . 0 end label values age_p pep031x label values sex_r sex_r label def sex_r 0 "0: Females", modify label values married married label def married 0 "0: Not Married", modify label def married 1 "1: Currently Married", modify label values edu_cat edu_cat label def edu_cat 1 "1: High School", modify label def edu_cat 2 "2: College", modify label def edu_cat 3 "3: Graduate School", modify label values poor2 poor2 label def poor2 1 "1: Poor", modify label def poor2 2 "2: Near Poor", modify label def poor2 3 "3: Not Poor/Near Poor", modify label values emp_stat emp_stat label def emp_stat 0 "0: Unemployed", modify label def emp_stat 1 "1: Employed", modify label values notcov pep394x label def pep394x 1 "1 Not covered", modify label def pep394x 2 "2 Covered", modify label values usupl usupl label def usupl 0 "0: Do not have a usual place", modify label def usupl 1 "1: Have a usual place", modify label values stay_us stay_us label def stay_us 1 "1: ≥ 5 yrs but < 10 yrs", modify label def stay_us 2 "2: ≥ 10 years", modify label values black_african black_african label def black_african 0 "0: Not Black African", modify label def black_african 1 "1: Black African", modify
Code:
tabxml, ivc(age_p) ivd(sex_r married edu_cat poor2 emp_stat notcov usupl stay_us) order(age_p sex_r married edu_cat poor2 emp_stat notcov usupl stay_us) save("/location_filename_$datentime") split(sex_r) options(n per) display bold justify(c) pval sp
Comment