Learn R Programming

SciencesPo (version 1.3.9)

meanFromRange: Estimates Mean and Standard Deviation from the Median and the Range

Description

When conductig a meta-analysis study, it is not always possible to recover from reports the mean and standard deviation values, but rather the medians and range of values. This function provides an approach to convert the median/range into a mean and a variance.

Usage

meanFromRange(low, med, high, n)

Arguments

low
The min of the data.
med
The median of the data.
high
The max of the data
n
The size of the sample.

References

Hozo1, Stela P.; et al (2005) Estimating the mean and variance from the median, range, and the size of a sample. BMC Medical Research Methodology, 5:13.

Examples

Run this code
meanFromRange(5,8,12,10)

Run the code above in your browser using DataLab