I\'m trying to build models based on specific groups in a dataset and use the models generated to predict fit on a different dataset by following the group restrictions. In