Filtering for trait model equal d