Filtering for trait model equal p