Hi all,
I want to center my data. But the problem is I only want to adjust the data with an average of it's respective category. For example, see table below. What if in the "age adjusted" col, I want the age column data but subtracted by the average of only the age data that has the same "city" and "gender" category?
So each age for "san francisco" and "male" would be subtracted by average of 1,2,3 = 2. The formula for new col "center" will use the average including every age in the entire column, right? So that won't work for me..
Thanks!!