Researchers measure attrition by calculating the dropout rate, which is the percentage of participants who leave the study before its completion. High dropout rates can indicate problems with the study design, the treatment regimen, or other factors that need to be addressed.