2.4. Statistical Analysis
Data in this study were analyzed statistically using the software packages R version 3.6.2 (https://www.r-project.org/) and RStudio version 1.1.463 (https://rstudio.com/). The χ2 test was used to compare differences inCryptosporidium or rotavirus infection rates by age group or diarrhea status. Logistic regression was used to assess the association between putative risk factors and the occurrence of diarrhea, using data from 213 pre-weaned and post-weaned calves during and after the diarrhea outbreak. Initially, the strength of association was assessed using univariate analysis. Variables with P ≤ 0.2 were thereafter used to build a multivariate model, with P < 0.05 being considered significant in the final model. Odds ratios (OR) with 95% confidence intervals (CI) were used to identify risk factors for diarrhea occurrence.