Filtering for trait code equal LGMM