You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
calculating mean and SD from median, IQR and sample size
Dear friends, is there a way we can calculate mean and standard deviation of the data using median, interquartile range and sample size in stata? Thank you for your help
Well, if the distribution in question has a known parametric form, there are formulas that can be used. For example, if the distribution is Gaussian, then the mean equals the median, and the interquartile range corresponds to 1.35 standard deviations. Similar things can be worked out for all of the "usual suspect" distributions. You can find the formulas in any textbook of mathematical statistics, or, for that matter, you can look them up in Wikipedia. (For some of the distributions you may not find direct formulas linking these things, but you will find formulas expressing both sets of statistics to some other parameterization of the distribution, which you can then, with a little algebra, use to get the correspondence you want.)
But if the data don't fit a parametric distribution, or you don't know which one, then there is no way to calculate mean and SD from median and IQR.
Comment