I need to calculate volume-weighted means of wholesale prices and then compare them to determine whether there are statistically significant differences. I'm concerned about the independence of the observations. I know this isn't a Stata issue per se, but a statistics related question.
So from one store there may be an order for 30 cartons (12 in a carton) of a particular item and 20 cartons (144 in a carton) of a similar item from another manufacturer. There are a few dozen stores and 3-10 manufacturers of the item and the carton sizes are all different. I need to get the volume-weighted mean for the item and then calculate whether there is a statistically significant difference in price between manufacturers.
What should be the observation? Should each unit be an observation? it seems that works for the mean, especially since the mean price is supposed to be volume weighted. But I wonder about the standard deviation and standard error. It seems that the 12 (or 144) units in a carton aren't independent observations. How should the weighting be done so a test of difference of means is correct?
So from one store there may be an order for 30 cartons (12 in a carton) of a particular item and 20 cartons (144 in a carton) of a similar item from another manufacturer. There are a few dozen stores and 3-10 manufacturers of the item and the carton sizes are all different. I need to get the volume-weighted mean for the item and then calculate whether there is a statistically significant difference in price between manufacturers.
What should be the observation? Should each unit be an observation? it seems that works for the mean, especially since the mean price is supposed to be volume weighted. But I wonder about the standard deviation and standard error. It seems that the 12 (or 144) units in a carton aren't independent observations. How should the weighting be done so a test of difference of means is correct?
Comment