Main

Conditional cash transfers (CCTs) are the world’s most widely implemented interventions for poverty alleviation1. Social protection, poverty alleviation and multisectoral actions on broad tuberculosis (TB) determinants are acknowledged as key pillars of the End TB Strategy by 2035, and they are essential to reduce the TB burden2.

CCT programs have the potential to positively influence TB prevention, diagnosis and treatment3,4. CCTs improve living conditions and incentivize behavioral changes by providing financial support to individuals or households who adhere to specific health-related conditions, often associated with child and maternal health5. Previous studies in low- and middle-income countries showed that CCT programs were associated with improved TB outcomes, including increased treatment adherence and completion rates6,7,8. Furthermore, CCTs could effectively alleviate the economic burdens faced by TB-affected households9. These costs, which often result from medical expenses, loss of income and other related factors, can push affected households into poverty and hinder their access to proper TB care10. Thus, these transfers help mitigate the catastrophic costs associated with TB, ensuring better access to treatment and reducing economic hardships for affected families.

Since 2004, Brazil has implemented one of the world’s largest CCT programs, the Bolsa Família Program (BFP)11,12. The governmental program provides direct cash transfers to households living in poverty with income below the poverty line defined by the Brazilian government as US$43.6 per person per month (at an exchange rate of 5 Brazilian Reais to US$1). The monthly cash benefits are at least US$120; children in the family aged between 0 and 6 years old receive an additional US$50, and pregnant women, children and adolescents up to 18 years old receive an additional of US$10 (values corrected in 2023). To continue receiving the benefits, BFP beneficiaries have to fulfill specific conditionalities related to healthcare for pregnant women (carrying out prenatal care) and children (compliance with the national vaccination schedule, monitoring nutritional status) and education (school attendance) for children and adolescents13. The BFP has been able to improve the well-being of families in poverty, and to reduce social and income inequalities in society, improving access to education, food and health services11. Several studies have shown the positive effects of the BFP on health outcomes such as child mortality12, cardiovascular diseases14, suicide15, leprosy16 and some aspects of the TB burden3,17, among others.

In addition to the income disparity, Brazil has a profound ethnic and racial inequality. Individuals with self-declaration of Black, Pardo and Indigenous ethnicity in Brazil face more barriers to accessing better job opportunities, salaries, decent housing, a balanced diet, and quality health and education services18. As a consequence, these populations are more subject to violence and worse health indicators18, including higher incidence of and mortality rates from TB19.

We are not aware of previous studies that have systematically evaluated the effects of CCT programs in large cohorts of vulnerable individuals at high risk for TB and with limited access to health services, such as groups in situations of social marginalization and individuals living in extreme poverty, analyzing their effects according to subpopulation characteristics and evaluating the association between the participation in CCT and TB burden indicators. This study aimed to evaluate the comprehensive association between receipt of the BFP and the reduction of TB incidence, mortality and case-fatality rates using a nationwide cohort of 54.5 million low-income Brazilians over 12 years, estimating its heterogeneous effectiveness across the spectrum of ethnoracial factors and socioeconomic conditions.

Results

Study design and population

This study has a cohort study design, obtained after selecting individuals from the 100 Million Brazilian Cohort20, a consolidated cohort created through the validated linkage21 between the Federal Government Unified Registry for Social Programs (Cadastro Único)—which gathers data from the poorest half of the Brazilian population—and health-related datasets from the Brazilian Ministry of Health. As described in the flowchart of the study population selection (Fig. 1), after individuals who were outside the study period 2004–2015 and who had missing information on demographic or socioeconomic variables were excluded, 54,571,434 individuals were selected, of which 23,907,958 were BFP beneficiaries (43.8%) and 30,663,476 were non-BFP beneficiaries (56.2%), with a total of 159,777 new TB diagnoses and 7,993 TB deaths.

Fig. 1: Flowchart of the selection of the study population from the 100 Million Brazilian Cohort, 2004–2015.
figure 1

Individuals from the 100 Million Brazilian Cohort were selected or excluded based on the study period (2004–2015) and availability of complete information of demographic and socioeconomic variables. A total of 54,571,434 individuals were selected: BFP beneficiaries (43.8%, n = 23,907,958) and non-BPF beneficiaries (56.2%, n = 30,663,476). The selected population included 159,777 new TB diagnoses.

TB incidence was lower among BFP beneficiaries than among non-beneficiaries (49.44/100,000 person-years at risk (pyr) (95% confidence interval (CI): 47.84–48.50) versus 81.37/100,00 pyr (95% CI: 80.97–82.13)), and the same was the case with TB mortality rate (2.08/100,000 pyr (95% CI: 2.01–2.15) versus 4.68/100,000 pyr (95% CI: 4.54–4.81)) and TB case-fatality rate (0.68/100 pyr (95% CI: 0.64–0.73) versus 1.37/100 pyr (95% CI: 1.25–1.49)) (Table 1). BFP beneficiaries and non-beneficiaries showed similar demographic and socioeconomic characteristics. Compared with non-beneficiaries, BFP beneficiaries are younger (mean age 25.3 versus 24.2 years) and had a slightly higher percentage of people self-identified as Black or Pardo race or ethnicity (62.6% versus 68.7%), people with no education (32.5% versus 37.1%), households with 3 or more individuals (66.0% versus 78.9%), people with lesser wealth (43.9% versus 58.0%), people without adequate sanitation (34.9% versus 38.7%) and people without a public network for water supply (23.9% versus 29.4%).

Table 1 Descriptive analyses of BFP beneficiaries and non-beneficiaries (n = 54,571,434), Brazil, 2004–2015

Main analyses

For the main statistical analysis, we used stabilized, truncated, inverse probability of treatment weighting (IPTW) multivariable Poisson regression models (see Methods for details). As shown in Table 2, the exposure to the BFP was associated with a significant reduction in TB incidence (adjusted rate ratio (aRR): 0.59; 95% CI: 0.58–0.60), decreased TB mortality (aRR: 0.69; 95% CI: 0.65–0.73) and lower TB case-fatality rate (aRR: 0.90; 95% CI 0.76–1.05), although not statistically significant.

Table 2 Estimates of the association between the BFP and tuberculosis incidence, mortality and the case-fatality rate in the Brazil adjusted Poisson model (with robust standard errors), 2004–2015

Stratified analyses

In the stratified analyses according to wealth terciles (Table 3), the association between the BFP and the reduction of TB incidence showed a marked gradient and was considerably stronger among the individuals living in extreme poverty (aRR: 0.49; 95% CI: 0.49–0.50), gradually decreasing until having only a small association on the wealthiest individuals (aRR: 0.95; 95% CI: 0.93–0.98). Also, for TB mortality, the BFP association was considerably stronger among the individuals living in extreme poverty (aRR: 0.60; 95% CI: 0.55–0.65) and showed a gradient demonstrating the lack of association of the BFP in those people with higher wealth (aRR: 1.00; 95% CI: 0.85–1.17) (Table 3).

Table 3 Estimates of the association between the BFP and TB incidence, mortality and case-fatality rate in Brazil in adjusted Poisson models (with robust standard errors), 2004–2015

In the stratified analyses according to race and ethnicity, another gradient was evident among individuals of Indigenous, Black or Pardo, and White ethnicity, both for TB incidence (aRR: 0.37 (95% CI: 0.32–0.42) for Indigenous, aRR: 0.58 (95% CI: 0.57–0.59) for Black or Pardo, aRR: 0.67 (95% CI: 0.66–0.69) for White) and TB mortality (aRR: 0.35 (95% CI: 0.20–0.62) for Indigenous, aRR: 0.69 (95% CI: 0.64–0.73) for Black or Pardo, and aRR: 0.83 (95% CI: 0.73–0.94) for White), while the estimates for TB case-fatality rate was not statistically significant (Table 3). In terms of education, the association between the BFP and reductions in TB incidence was greater in people with less education (aRR: 0.58 (95% CI: 0.57–0.59) versus aRR: 0.80 (95% CI: 0.77–0.83) for people with higher education) (Table 3). The BFP was also associated with a higher reduction in TB mortality rates in females than in males (aRR: 0.63 (95% CI: 0.57–0.69) versus aRR: 0.78 (95% CI: 0.72–0.84), respectively). According to analyses by Brazilian regions, the strongest associations between the BFP and both TB incidence and mortality reductions were observed in the poorest areas, specifically the north and northeast regions. When carrying out a stratified analysis according to the existence or not of prisons in the municipality, we observed a greater association between the BFP and reductions in TB incidence (aRR 0.55 (95% CI: 0.54–0.56) versus aRR 0.62 (95% CI: 0.61–0.64)) and mortality (aRR 0.64 (95% CI: 0.59–0.70) versus aRR 0.74 (95% CI: 0.68–0.80)) in municipalities without prisons.

Sensitivity and triangulation analyses

We developed a wide range of several sensitivity analyses (for details, see Methods and Supplementary Tables 17), fitting models with different specifications and adjusting variables. We also performed two different triangulation analyses22: Cox multivariate regression and propensity score matching (PSM) (Extended Data Table 4). All sensitivity tests confirmed the association estimates, and the triangulation analyses showed a high degree of confidence in the causal inference.

Discussion

In this study, we systematically analyzed the BFP effect among individuals living in situations of social marginalization, evaluating the associations between participation in a CCT and the burden of TB according to their ethnoracial and socioeconomic conditions. We observed strong effects of the BFP in decreasing both TB incidence and mortality rates. Notably, the effectiveness of the BFP showed a marked gradient based on race, ethnicity and socioeconomic conditions, revealing significantly stronger effects among individuals with Indigenous or Black or Pardo ethnicity and individuals living in extreme poverty.

Our findings reveal a gradient of BFP effectiveness based on the baseline wealth level of its beneficiaries: the BFP shows a significant effect on TB incidence and mortality in individuals living in extreme poverty, while demonstrating a lower effect on TB incidence in the less poor, with no discernible effects on TB mortality. The strongest effect of the BFP in the individuals living in extreme poverty can be explained by two factors. First, extreme poverty has consistently been shown to be a significant risk factor for TB, with TB risk levels correlating directly with poverty levels4. Therefore, lifting someone out of extreme poverty can be associated with a substantial reduction in their TB risk and burden. In addition, BFP benefits increase with poverty levels, providing a more significant improvement in socioeconomic position for individuals living in extreme poverty compared with those living in poverty, resulting in a more pronounced reduction in TB risk and burden for the former group.

Regarding the mechanisms by which CCT can affect TB, it has to be considered that the BFP, through the direct transfer of money to the families living in extreme poverty and in situations of social marginalization in Brazil, promotes greater access to food, both in quantity and quality, reducing food insecurity and malnutrition, an important TB risk factor, besides improving immune host defenses11. Moreover, housing conditions could improve, reducing crowding and poor ventilation, which are also recognized risk factors for TB23. Households could also transition from cooking with burning fuels such as wood, charcoal, coal and kerosene to cleaner fuels. This change can help reduce indoor air pollution, which has been recognized as a factor contributing to increased TB incidence. Smoking habits and alcoholism, which are strongly associated with poverty, could also decrease among BFP beneficiaries, thereby reducing the risk of contracting TB. The prevalence of diabetes, HIV and AIDS, which is higher in the individuals living in social vulnerability, could also be reduced by poverty-reduction interventions24,25,26. Consequently, this reduction can be associated with a decrease in the incidence and mortality from TB. Moreover, individuals affected by TB who are living in extreme poverty are more likely to avoid seeking diagnosis at health centers or to interrupt their treatment owing to direct costs, such as transportation expenses, and opportunity costs, such as the difficulty of missing a day of work due to their precarious employment and subsistence conditions. These costs could represent a barrier even if prevention, diagnosis and treatment are available free in the Unified Health System (Sistema Único de Saúde)27. In addition to providing monetary transfers, the conditions that qualify for the BFP could also contribute to reducing TB. These conditions are linked to requirements such as school attendance, education and access to health services for pregnant women and children under 5 years old, which could facilitate the recognition and early diagnosis of TB13. In summary, the BFP promotes a greater access to income, food and healthcare. This can be associated with a reduction on TB incidence, facilitate TB early diagnosis and treatment adherence, increase the TB cure rate3,28,29 and reduce complications and death from the disease30.

Moreover, we found that the BFP has a strong reduction effect on TB incidence and mortality in Indigenous populations in Brazil, who have a significantly higher risk of TB infection and mortality31. While this could be explained by the same mechanisms listed above, particularly in the context of Indigenous populations, the receipt of the BFP could alleviate extreme poverty and socioeconomic vulnerability. This could reduce food insecurity and malnutrition, which are particularly high among Indigenous populations, and lessen the significant geographic barriers that hinder access to even basic healthcare services32.

It is worth elucidating the greater effect of the BFP on TB incidence among people of Black and Pardo race and ethnicity as more than 60% of new diagnoses of pulmonary TB in Brazil occurred among people who self-identified as Black and Pardo19. This could potentially be explained by the identical mechanisms detailed earlier. Particularly among individuals of Black and Pardo ethnicity in Brazil, the BFP could act on historical and structural social inequities18,33, increasing income and improving education through its conditionalities, providing access to health services and, in this way, reducing the TB burden. The mechanisms described above can also explain the greater effect of the BFP in the north and northeast regions, which are the poorest and less developed areas of the country, with the worst infrastructures and healthcare resources34.

The BFP has also a stronger reduction effect on mortality from TB in women. This can be explained by the fact that a woman is often primarily responsible for the family in registering and receiving the BFP. Furthermore, pregnant and breastfeeding women follow the conditions for receiving the BFP (pre- and postnatal care, vaccination, and health and nutrition surveillance)13. In this way, women who benefit from the BFP have greater access to health services, which could be associated with a greater reduction in TB mortality in this group, when compared with men.

We also observed that the protective effects of the BFP and lower incidence and mortality are greater in municipalities that do not have prisons. Prisons usually act as ‘institutional amplifiers’ or ‘reservoirs’ of TB, affecting the TB incidence not only in prison but also in non-prison populations35. The lower effect of BFP in these municipalities could be attributed to the program not reaching these populations, or not affecting their infection dynamics, leading to a higher and more resilient level of TB incidence in the community despite the coverage of the BFP36.

TB prevention and care for economically vulnerable populations became an even greater challenge during and after the COVID-19 (coronavirus disease) pandemic37. Each of these populations living in economic vulnerable conditions has specificities and complexities when it comes to implementing TB prevention, diagnosis and treatment interventions. Furthermore, inequalities linked to local contexts, health facilities, and social, behavioral and cultural factors can superimpose on the organization of health services, influencing the care provided to these populational groups37. In this sense, it becomes urgent to intensify the actions of prevention and comprehensive care aimed at people in situations of social vulnerability, as well as intersectoral articulations and the inclusion of TB in the agendas of Social Assistance and Human Rights, among others. For this purpose, an Inter-Ministerial Committee for the Elimination of Tuberculosis and Other Socially Determined Diseases was created in 2023 in Brazil38.

Our study has certain limitations that should be acknowledged. The first limitation is that, despite our efforts to control for all relevant confounding variables and use propensity-score-based models with IPTW, these approaches may not fully account for unobservable confounding variables and for potential selection biases. To address this concern, we have developed a multifaceted approach. First, we used a wide range of adjusting variables related to demographic, socioeconomic, healthcare and environmental determinants at the individual, household and municipal level, in both the logistic regression, for the construction of the propensity score, and in the Poisson regression for the estimation of BFP effects. This approach has been successfully used in previous studies on the impact of BFP and other public interventions on several health outcomes14,15,16,18,23,33. Second, we incorporated as adjusting variable—in the logistic and Poisson models—the average municipal rate of the TB indicator over the study period for each outcome under study (incidence, mortality and case-fatality rate). These rates were estimated among individuals from the same municipalities in the cohort. This allowed us to adjust for baseline endemic levels of the specific TB outcome under study in the municipalities and, consequently, for potentially associated unobservable variables—controlling for selection biases correlating BFP implementation levels with endemic TB levels in the community. Third, extensive sensitivity analyses were conducted (Supplementary Tables 17 and Methods), showing that the inclusion of additional independent variables or the substitution of existing ones, besides many other changes in the models’ specifications, did not significantly affect the BFP effect estimates. Fourth, to increase our confidence in the causal inference, and eliminate the possibility of significant selection biases, we performed two different triangulation analyses: survival analysis with Cox regressions and PSM (Extended Data Table 4), showing that even with different methodological approaches, BFP effect estimates were still strong and statistically significant.

Another limitation is related to the external validity of our study: the 100 Million Brazilian Cohort—and our derived study cohort—consist of individuals obtained from the linkage between the Unified Registry for Social Programs (Cadastro Único (CADU)) and health data. Individuals registered in the CADU represent the poorest half of the Brazilian population. As a consequence, our cohort includes only individuals with extremely low-income or low-income who need to be registered in the CADU to access governmental assistance programs. This limitation affects the external validity of the cohort at the national level, as high-income individuals are not represented.

Moreover, although the Notifiable Diseases Information System (Sistema de Informação de Agravos de Notificação (SINAN)) has high sensitivity in Brazil, there may be underreporting of TB notifications19. However, our study design and analytic strategy limit the possibility that underreporting could bias our results. Additionally, results from municipalities selected for the high quality of vital information and low under-notifications confirm our findings (Supplementary Table 6).

A third limitation is that individuals with missing information in any of the adjusting variables were excluded. Although this exclusion may enhance the internal validity of the study, as records with missing values are often considered of lower quality, it also partially limits the generalizability of the results. However, analyses that included individuals with missing values yielded similar BFP effect estimates (Supplementary Table 7).

In this study, it was not possible to perform a cost-effectiveness analysis owing to its additional complexity and to the need for data not available in our datasets.

Our study presents strengths that contribute to its overall value. Firstly, we leveraged a large longitudinal dataset, which, when combined with effect evaluation methods, allowed us to assess the effects of interventions on an unprecedented scale. This unique approach enabled us to include a significant number of individuals and subpopulations that are often overlooked or underrepresented in traditional epidemiological studies and randomized controlled trials. This comprehensive inclusion is crucial for policy evaluations, as it highlights the potential differential impacts of public interventions based on the characteristics and baseline conditions of the BFP beneficiaries. In addition, our study’s strength lies in the extensive range of sensitivity analyses conducted. These analyses provided further validation and reinforcement of the study’s findings, ensuring their robustness and reliability. Furthermore, using various triangulation analyses instilled a high level of confidence in the causal inference, further bolstering the credibility of our findings.

We conclude that CCT programs can greatly reduce the incidence of and mortality from tuberculosis, particularly among individuals living in extreme poverty and self-declared as Indigenous and Black or Pardo ethnicity, who are usually at higher risk for TB and its devastating impacts. Therefore, the expansion of CCT programs in low- and middle-income countries can significantly strengthen the global response to TB, reducing social inequalities in the TB burden and contributing to the achievement of the End TB Strategy and the TB-related Sustainable Development Goals.

Methods

Study design, population and ethics

This study has a cohort study design, based on the longitudinal information of 54.5 million individuals from 1 January 2004 to 31 December 2015 (the period for which tuberculosis data were available). First, we constructed a conceptual framework to explain the mechanisms of possible associations between CCT and TB outcomes and to drive the analysis (Extended Data Fig. 1). The study population was developed by selecting a subgroup of individuals of the 100 Million Brazilian Cohort20, a consolidated cohort created through the validated linkage21 between the Federal Government Unified Registry for Social Programs (CADU)—which gathers data from the Brazilian population living in poverty, identifying and characterizing low-income families for social program eligibility, and including information on exposure to the BFP—and health-related datasets from the Brazilian Ministry of Health. The selection criteria for the inclusion of the study population were individuals registered in the CADU, diagnosed or not with TB and who received or not the BFP for more than 30 days during the study period (from 2004 to 2015). And the exclusion criteria were (1) individuals with follow-up time of less than 1 day, duplicate individuals or individuals with inconsistent dates and (2) individuals with missing data for the demographic and socioeconomic adjusting variables. The selection process of the study cohort is detailed in the flowchart of Fig. 1.

The criteria for the development and consolidation of the 100 Million Brazilian Cohort, including handling of misclassification, underreporting and missing data, are described elsewhere20.

Data sources, outcomes and intervention

Two individual-level health-related datasets were linked to CADU: the Notifiable Diseases Information System (SINAN) and the Mortality Information System (Sistema de Informação sobre Mortalidade (SIM)). SINAN contains records of notifiable diseases, including TB. SIM registers deaths by all causes, according to the International Classification of Diseases (ICD-10). The linkage codes and algorithms were built based on five identifiers: date of birth, municipality of residence, sex, name and mother’s name of the individual in each database. The CADU and the health information datasets (SIM and SINAN) were individually matched in two steps, using The Centre for Data and Knowledge Integration for Health (Centro de Integração de Dados e Conhecimentos para a Saúde (CIDACS))—Record Linkage tool (version number 1). The quality of each link between CADU, SINAN and SIM has been extensively evaluated and validated21. An aggregate-level longitudinal dataset—containing a wide range of yearly municipal-level information on TB endemicity levels, municipal infrastructures and healthcare resources—was also linked to the cohort through the individuals’ municipal code of residence.

Tuberculosis outcomes defined for the study were incidence, mortality and case-fatality rates. The beneficiary group was defined as eligible individuals who received BFP benefits for more than 30 days, and their exposure started with receipt of the benefit until the end of their follow-up. The non-beneficiary group was defined as individuals who had never benefited from the BFP throughout their follow-up period. In the case of non-receipt of the benefits, eligible individuals were classified in the non-beneficiary group.

Statistical analyses

First, in the descriptive analysis, we estimated the rates of the study outcomes as follows: (1) TB incidence: new TB diagnoses divided by person-years at risk and multiplied by 100,000; (2) TB mortality: TB deaths divided by person-years at risk and multiplied by 100,000; and (3) case-fatality rate: TB deaths among people affected by TB divided by person-years at risk and multiplied by 100. The follow-up time for each individual in the cohort, that is, person-years, started on the date of entry into the cohort until the date of TB diagnosis (for TB incidence), the date of death due to TB (for TB mortality rate), the date of death from other causes or the end date of the cohort (31 December 2015). For the TB case-fatality rate, the start date began with the date of diagnosis and ended with the TB-related death, the date of death from other causes or the final date of the cohort. Afterward, we performed a descriptive analysis of new people affected by TB and deaths according to each independent variable. At the individual level, the demographic and socioeconomic covariables were age, self-reported sex, self-identified race or ethnicity (White, Indigenous, Black and Pardo—these last categories were analyzed together), education, per capita expenditure (as a proxy for the per capita wealth and calculated as a percentage of the yearly minimum wage, categorized by above or below the median) and year of entry into the cohort. At the family level, the independent variables were related to household characteristics: number of people, water supply, household construction material, sanitation, garbage disposal and lighting. At the municipal level, the covariables were unemployment rate, Gini index and a set of variables related to health services: Family Health Strategy (Estratégia de Saúde da Família) coverage (the main model of primary healthcare in Brazil), the number of doctors, nurses and specialized clinics per 1,000 inhabitants. To control for any potential selection bias associating BFP implementation with endemic TB levels in the community, the mean TB incidence rate in the cohort during the study period was included as a covariate in the models. When the study outcome was the case-fatality rate, we also included clinical classification of TB, percentage of directly observed therapy (DOT), AIDS comorbidity and diabetes as independent variables. All the variables used in the study are described in the conceptual model (Extended Data Fig. 1).

To estimate the association between BFP exposure and TB incidence, mortality and case-fatality rates, we used multivariable Poisson regression models, adjusted for all the relevant demographic and socioeconomic confounding variables listed above, with follow-up time as an offset variable, robust standard errors and observations weighted through stabilized, truncated, IPTW39,40. Poisson regression models are common for cohort data analyses41, and IPTW Poisson regression models have been used in cohort studies that investigate the impacts of public and social policies on health outcomes, including several evaluation studies that used the 100 Million Brazilian Cohort14,15,16,25,42,43.

The process of IPTW consists of two primary stages. Initially, the likelihood, also known as the propensity, of encountering the risk factor or intervention under consideration is computed based on an individual’s attributes (that is, propensity score). Subsequently, weights are calculated as the inverse of the propensity score. By applying these weights to the study’s population, a simulated population is generated in which potential sources of bias are equally balanced between the exposed and unexposed groups39,44.

We consider a scenario with two potential treatments: one involving exposure to the BFP (treatment) and the other being unexposed (control). Within the potential outcome’s framework, each individual is associated with a pair of potential outcomes (TB outcomes): Yi(1) and Yi(0). These outcomes represent the results under the treatment and control conditions, respectively, when subjected to the same conditions. However, each individual is assigned either the treatment or control, but not both. We denote Z as an indicator variable for treatment (exposure to BFP) (Z = 1 for treatment and Z = 0 for control). Consequently, only a single outcome, Yi, is observable for each individual: this is the outcome linked to the actual treatment they received. The observed outcome, denoted by \({Y}_{i}i\), is determined by \({Y}_{i}={Z}_{i}{Y}_{i}\left(1\right)+\left(1-{Z}_{i}\right){Y}_{i}(0)\). Thus, Yi is equivalent to Yi (0) if Zi(0), and is equivalent to Yi(1) if Zi(1). Let X represent a vector of observed baseline covariates. Initially, we used logistic regression to get the propensity score. The logistic regression equation models the probability of a binary outcome (usually 0 or 1) as a function of one or more predictor variables. The logistic function, also known as the sigmoid function, is used to transform the linear combination of predictors into the probability of the event occurring.

$$P(Z=1\left|\right.{\mathbf{X}})=\frac{1}{1+{e}^{-({\beta }_{0}+{\beta }_{1}{\mathbf{X}}_{1}+{\beta }_{2}{\textbf{X}}_{2}+\ldots +{\beta }_{p}{\mathbf{X}}_{\mathbf{p}})}}$$

where \(P(Z=1|{\bf{X}})\) is the probability of the binary outcome being 1 given the predictor variables X; e is the base of the natural logarithm; and β0, β1, β2,…, βp are the coefficients corresponding to the predictor variables X1, X2, …, Xp. We estimated the probability of each individual to receive the BFP (propensity score (PS)), in two ways. For the first equation, we calculated the marginal probability of treatment (PSt) and then we estimated the multivariable PS (PSmul), adjusted for all relevant covariates.

We used PSt and PSmul as weights to calculate the stabilized IPTW using the formulas:

$${w}_{Z=1}=\frac{PS_{\rm{t}}}{PS_{\rm{mul}}}\;\;\;{w}_{Z=0}=\frac{(1-PS_{{\rm{t}}})}{(1-PS_{\rm{mul}})}$$

where wZ=1 is the weight for the beneficiaries and wZ=0 is the weight for the non-beneficiaries. To correct for possible extreme weights, we set thresholds, with weights exceeding the set value converted to that threshold value45. In this study, the weights were truncated based on the distribution of their values for the 1st and 99th percentiles, which represented these thresholds, as in previous similar studies14,15,16,25,42,43. IPTW uses the propensity score to balance baseline characteristics in the exposed and unexposed groups by weighting each individual by the inverse probability of receiving treatment39,44.

The Poisson equation with IPTW is a framework used to analyze count data or event occurrences, while accounting for the potential bias introduced by non-random treatment assignment in observational studies. In this context, the Poisson equation models the relationship between the event outcomes and covariates while incorporating IPTW to adjust for treatment selection bias.

$$\log {Y}_{i}=\,{\beta }_{0}+\,{\beta }_{1}{X}_{i1}+{\beta }_{2}{X}_{i2}+\ldots +{\beta }_{p}{X}_{{ip}}+\log {\rm{IPTW}}_{i}$$

where logYi is the natural logarithm of the rate for individual i; Xi1, Xi2, …., Xip are the covariates for individual i; β0, β1, β2, …., βp are the coefficients associated with the covariates; and logIPTWi represents the logarithm of the inverse probability treatment weight for individual i. Finally, multivariable Poisson regressions, adjusted by stabilized, truncated IPTW, were estimated with the same socioeconomic and demographic variables adopted in the logistic model for all TB outcomes.

Moreover, to understand BFP association heterogeneity, we fitted these IPTW Poisson regression models stratified by age, sex, race and ethnicity, education, wealth terciles (per capita expenditure), existence of prisons in the municipality and Brazilian regions.

To confirm the robustness of the findings, we applied several sensitivity analyses: (1) we fitted the same regressions without and only with the TB endemicity level variable (Supplementary Tables 1 and 2); (2) we fitted models with only individual-level variables and tested the inclusion of different aggregate-level variables (Supplementary Table 3); (3) we estimated and compared all models without IPTW (Extended Data Table 5); (4) to evaluate the adoption of per capita expenses as a proxy for wealth, we carried out the same analyses with other proxies, such as per capita income (Supplementary Table 4); (5) we adjusted the same models with different specifications (including different sets of individual-level covariates, inclusion or exclusion of robust standard errors (Supplementary Table 5), only in municipalities with adequate vital information (Supplementary Table 6)); and (6) we redid the estimates including individuals with missing category (Supplementary Table 7). Finally, to have a greater degree of confidence in the causal inference of our impact evaluation, we performed two different triangulation analyses22, verifying the existence of BFP associations also using alternative methods: survival analysis with Cox multivariate regression and PSM (Extended Data Table 4).

All statistical analyses were performed in Stata Version MP 15.1.

Inclusion and ethics statement

This project was designed through a longstanding partnership among the Institute of Collective Health (Instituto de Saúde Coletiva (ISC)) of the Federal University of Bahia (Universidade Federal da Bahia (UFBA)) and The Center for Data and Knowledge Integration for Health (CIDACS) of the Oswaldo Cruz Foundation (Fundação Oswaldo Cruz (FIOCRUZ)), both based in Salvador, Brazil. The 100 Million Brazilian Cohort was created by CIDACS in collaboration with ISC researchers, and the subset of data used for this study was selected and analyzed by a collaborating group of ISC and CIDACS researchers. All team members collaborated on data ownership, intellectual property and authorship of publications related to the work. Roles and responsibilities were agreed upon among collaborators ahead of the research. Previous work and articles from the analyses of these datasets, most of them developed by co-authors of this article, were used to guide the design of this study, as well as connect our findings to similar research, and have been considered in the citations for this paper.

Ethics approval

This study was approved by the Research Ethics Committee of the Institute of Collective Health of the Federal University of Bahia (ISC, UFBA), under number 41691315.0.0000.5030 (assessment number 3.783.920). In this study, participant consent was waived owing to the use of administrative data.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.