Luo.mean: Luo et al.'s mean estimators

Description Usage Arguments References Examples

View source: R/BLUE.R

Description

Use Luo et al.'s methods (Luo et al., 2016) to estimate the sample mean based on sample quantiles derived summaries for a single study.

Usage

1
Luo.mean(X, n, type)

Arguments

X

a vector of ordered summary statistics

n

the sample size

type

a character string indicating which type of summary statistics is reported. The options for the type argument are:

  • "S1" for the sample mean, minimum and maximum values

  • "S2" for the sample mean, first and third quartiles

  • "S3" for the sample mean, first and third quartiles, and minimum and maximum values

References

Luo D, Wan X, Liu J, and Tong T. (2016). Optimally estimating the sample mean from the sample size, median, mid-range, and/or mid-quartile range. Statistical Methods in Medical Research, arXiv:1505.05687.

Examples

1
2
3
4
X<-c(1,4,10)
n<-30
type<-"S1"
Luo.mean(X,n,type)

metaBLUE documentation built on May 29, 2018, 9:04 a.m.