create a formula that takes means over different variables
I have a bunch of categorical factors (like gender, age group, etc.) and a continuous response. I'd like to take the means of the response but grouped for the categorical factors. So any woman between the ages of 15 and 20, say, would be averaged separately from men 60-65. And I would like these means saved to a column. Is there a way to do that? Sorry, if this is an easy answer...I'm very ne...
