Displaying 1 result from an estimated 1 matches for "tp2269349p2269815".
Did you mean:
tp2269349p2269816
2010 Jun 26
7
Calculating Summaries for each level of a Categorical variable
Hi,
I have a dataset which has a categorical variable "R",a count variable C
(integer) and 4 or more numeric variables (A,T,W,H - integers) containing
measures for "R". I would like to summarize each level of the variable R by
the average for A,T,W and H.
I have written a function to calculate weighted averages using C as the
weight and this is given below. The function