Filtering for trait code equal IMDM