Hello
I am using running a series of crosstab tables using the following tabout command:
Code:
tabout sex v501_marital_stat_r religion v106_education_r v190a_wealthquintiles v025_urbanrural ///
condomless2partners if hivstatusoutcome==2 using EmmaDHS_2B.txt, replace c(row) svy f(1) ///
style(tab) stats(chi2) font(bold) npos(col) percent pop
However, I am getting a sort of conformability error - produced below:
Code:
build_ncol(): 3200 conformability error
do_output(): - function returned error
<istmt>: - function returned error
r(3200);
end of do-file
r(3200);
I am not sure how to resolve this - I have changed the order of variables and even reduced them to as few as 5 as presented in the example data included here, but the error still appears.
I am wondering if you could give me assistance to resolving this. I am including an a scratch data below using tabout.
I look forward to any assistance - cheers, cY
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float sex byte v501_marital_stat_r int religion byte(v106_education_r v190a_wealthquintiles v025_urbanrural) float(condomless2partners hivstatusoutcome)
0 1 2 0 . 2 . 1
1 1 3 0 4 2 . 1
1 0 2 1 . 2 . 1
1 1 1 2 . 2 . 1
1 1 1 0 . 1 . .
1 0 2 2 . 2 . 1
1 1 1 1 . 1 . .
0 1 2 2 . 1 . 1
1 1 3 0 . 2 . .
1 1 3 0 3 2 . 1
1 1 2 2 . 2 . 1
1 1 2 1 . 2 . .
0 1 3 1 . 1 . 1
0 0 . 1 . 2 . 1
0 1 3 2 . 1 1 1
1 0 2 1 . 1 . 1
1 0 3 1 . 2 . 1
0 1 . 1 . 2 . 1
0 1 2 1 . 2 . 1
0 1 1 2 . 1 . 1
0 0 2 2 . 1 . 1
1 1 2 0 . 1 . .
1 0 2 2 . 2 . 1
1 1 2 0 . 2 . 1
1 1 1 1 . 2 . .
1 1 3 0 . 2 . 1
1 1 2 0 . 1 1 1
1 1 1 2 . 2 . .
1 0 2 2 . 1 . 1
0 0 2 2 . 2 . .
1 1 2 2 . 2 . 3
1 0 3 2 . 2 . .
0 0 3 0 2 1 . 1
1 0 . 1 . 2 . 1
1 1 2 0 . 2 . 1
1 1 3 0 . 2 . 1
1 1 2 2 . 2 . 1
0 1 2 2 . 2 1 1
1 0 3 0 . 2 . .
0 0 2 1 . 2 . 1
1 0 3 1 . 2 . .
0 1 1 0 . 2 . 1
0 1 2 1 . 2 . 1
0 0 2 1 . 2 . 1
1 1 3 0 . 1 . 1
1 0 2 2 . 1 0 1
0 0 3 0 1 1 1 1
1 1 3 0 . 2 . 1
0 1 . 1 . 1 . 1
1 0 1 0 . 2 . 1
end
label values sex gender
label def gender 0 "male", modify
label def gender 1 "female", modify
label values v501_marital_stat_r married
label def married 0 "not married/living together", modify
label def married 1 "married/living together", modify
label values religion religion
label def religion 1 "Catholic", modify
label def religion 2 "ChristianPentecostal", modify
label def religion 3 "Others(TradMuslim)", modify
label values v106_education_r edu
label def edu 0 "no education", modify
label def edu 1 "primary", modify
label def edu 2 "secondary or higher", modify
label values v190a_wealthquintiles MV190A
label def MV190A 1 "poorest", modify
label def MV190A 2 "poorer", modify
label def MV190A 3 "middle", modify
label def MV190A 4 "richer", modify
label values v025_urbanrural URBAN
label def URBAN 1 "urban", modify
label def URBAN 2 "rural", modify
label values condomless2partners yesno
label values hivstatusoutcome hivstatuso
label def hivstatuso 1 "hiv negative", modify
label def hivstatuso 3 "hiv positive and unaware", modify
0 Response to Tabout Error - Conformability r(3200)
Post a Comment