Algorithm to identify transgender and gender nonbinary individuals among people living with HIV performs differently by age and ethnicity.