I am trying to group a set of x variables by 10th percentiles, and then I have 11 numbers for the percentiles(one of them is zero so it may be omitted), now I'd like to use these 10 values to run a regression on variable y, where y is the mean of a certain percentile group.
How do I get my grouped variables, and how do I calculate their mean? Detailed step by step answers appreciated!
Much thanks in advance!