The odds ratio is calculated using a 2x2 contingency table, which categorizes subjects by exposure status and outcome status. The formula for calculating the odds ratio is:
where: - \( a \) = number of exposed cases - \( b \) = number of exposed non-cases - \( c \) = number of non-exposed cases - \( d \) = number of non-exposed non-cases