Filtering for trait model equal q