Hi, I would like to calculate a weighted geometric mean and weighted geometric standard deviation for a set of observations. First, I have ln-transformed the observations (lnvar) and I am using weights representing the number of individuals represented by each observation (count). The weighted geometric mean and weighted geometric standard deviation will be added as scalars to the estimation results. Is it correct to use the following commands to do this?
summarize lnvar [fweight=count]
estadd scalar wtgeomean = exp(r(sum)/r(sum_w))
estadd scalar wtgeosdev = exp(r(sd))
Thanks, Jonathan
summarize lnvar [fweight=count]
estadd scalar wtgeomean = exp(r(sum)/r(sum_w))
estadd scalar wtgeosdev = exp(r(sd))
Thanks, Jonathan
Comment