In the subgroup analyses, both AIP and TyG were significantly positively correlated with AF in different subgroups. Here, AIP is linked to atrial fibrillation.