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

Description Usage Arguments References Examples

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)

Example output

$muhat
[1] 4.356748

$sum_stat_index
[1]  1 16 30

$sum_stat
[1]  1  4 10

metaBLUE documentation built on May 1, 2019, 10:14 p.m.

Related to Luo.mean in metaBLUE...