Files associated with GLMM models for aflatoxin prevalence in Maize
##
** Repository for modeling aflatoxin prevalence in maize using data collected in Uganda for the years 2021 and 2022. **
We used a Generalized Linear Mixed Model (GLMM) with a Tweedie distribution to analyze the effects of various predictors on aflatoxin prevalence.
***Model Specification***
*Predictors:* Altitude, Season, Treatment, and the interaction between Altitude and Treatment.
*Random Effects:* Districts nested within Regions.
***Hypotheses:***
Treated farms will have lower aflatoxin prevalence compared to untreated farms.
Aflatoxin prevalence will vary significantly by season, region, and district.
Higher-altitude farms (likely wetter areas) may have higher aflatoxin prevalence due to increased fungal growth conditions.
The effectiveness of treatment might depend on altitude (i.e., we expected a potential interaction effect).
***Preliminary Findings:***
Treatment significantly reduces aflatoxin prevalence (*p*
The interaction between Altitude and Treatment is not significant (p = 0.414), indicating that the effect of treatment is consistent across different altitudes i.e., altitude does not influence how well the treatment works.
Altitude alone is not a significant predictor (p = 0.127), suggesting that it may not strongly influence aflatoxin prevalence as initially expected.
Significant variability exists at the district and regional levels, indicating that localized environmental or management factors may play a role in aflatoxin contamination.
These findings highlight that treatment is effective regardless of altitude, and aflatoxin prevalence is highly dependent on seasonality. Further analysis will explore additional environmental and management factors that may contribute to these trends.