Table 2: Demographic and clinical risk factors associated with pulmonary cavity (univariable model).
| Characteristic | OR1 | 95% CI1 | p-value | 
| Gender | 
 | 
 | 0.029 | 
| Female (ref) | - | - | 
 | 
| Male | 1.43 | 1.04, 1.96 | 
 | 
| Age (years) | 1 | 0.99, 1.01 | 0.42 | 
| Age Category (years) | 
 | 
 | 0.38 | 
| < 35 years (ref) | - | - | 
 | 
| 35-49 years | 1.39 | 0.86, 2.25 | 
 | 
| 50-64 years | 1.15 | 0.71, 1.86 | 
 | 
| > 65 years | 1.39 | 0.81, 2.40 | 
 | 
| MDR | 
 | 
 | < 0.001 | 
| No (ref) | - | - | 
 | 
| Yes | 3.1 | 2.38, 4.05 | 
 | 
| Isoniazid Resistance | 
 | 
 | < 0.001 | 
| No (ref) | - | - | 
 | 
| Yes | 4.5 | 3.07, 6.76 | 
 | 
| Rifampin Resistance | 
 | 
 | < 0.001 | 
| No (ref) | - | - | 
 | 
| Yes | 4.26 | 2.90, 6.41 | 
 | 
| Ethambutol Resistance | 
 | 
 | < 0.001 | 
| No (ref) | - | - | 
 | 
| Yes | 3.9 | 2.55, 6.18 | 
 | 
| Education Category | 
 | 
 | 0.16 | 
| Worker (ref) | - | - | 
 | 
| Student | 0.49 | 0.19, 1.22 | 
 | 
| Pensioner | 0.65 | 0.26, 1.51 | 
 | 
| Disabled | 0.83 | 0.32, 1.99 | 
 | 
| Unemployed | 0.85 | 0.21, 3.63 | 
 | 
| Occupation | 
 | 
 | < 0.001 | 
| Higher (ref) | - | - | 
 | 
| Specialized sec | 1.51 | 0.65, 3.52 | 
 | 
| Secondary | 1.37 | 0.67, 2.77 | 
 | 
| Primary | 5.36 | 2.93, 10.2 | 
 | 
| No education | 2 | 1.39, 2.90 | 
 | 
| Homeless | 
 | 
 | 0.01 | 
| Sheltered (ref) | - | - | 
 | 
| Ho meless | 2.01 | 1.18, 3.56 | 
 | 
| HIV Status | 
 | 
 | 0.88 | 
| Negative (ref) | - | - | 
 | 
| Positive | 0.96 | 0.57, 1.62 | 
 | 
| Treatment Failure | 
 | 
 | < 0.001 | 
| No (ref) | - | - | 
 | 
| Yes | 3.27 | 2.50, 4.30 | 
 | 
1OR: Adjusted Odds Ratio; 1CI: Confidence Interval.