Hi @ballardw,
The sub group is categorical yes... it is the sub group affluence score that is continuous, this is the variable that I want to use to try and assign a predicted subgroup income.
I was thinking of creating 6 bins using the quantile method for the income column to create affluence groupings... i.e. very affluent, affluent, slightly affluent, slightly deprived, deprived, very deprived. If a sub group is very affluent then is should have an income that is somewhat higher than the groups average.. if a sub group is very disadvantaged then is should have an income that is somewhat lower than the groups average.
I want the income to increase in more affluent sub groups and decrease in less deprived ones, so that there is an income for each sub group.