building a regression set with a filter on one of the variables