Attrition bias can compromise the internal validity of a study. If the dropout rate is related to both the exposure and the outcome, the observed associations may be skewed. For instance, in a study on the effectiveness of a vaccine, if participants who experience adverse effects are more likely to drop out, the results may underestimate the vaccine's side effects.