get_SE.mln.mean.sd | R Documentation |
Computes a parametric bootstrap standard error estimate for the method for unknown non-normal distributions approach.
## S3 method for class 'mln.mean.sd'
get_SE(x, nboot = 1000, shift.when.negative = TRUE, shift.val = 0.5, ...)
x |
object of class "mln.mean.sd". |
nboot |
numeric value giving the number of bootstrap replicates. The default is |
shift.when.negative |
logical scalar indicating whether to add a constant to the generated sample quantiles if the smallest quantile (i.e., the minimum value in scenarios S1 and S3, the first quartile in scenario S2) is negative. When this argument is set to |
shift.val |
numeric value to which the smallest quantile should be shifted to if it is negative (see argument |
... |
other arguments. |
A list with the following components:
est.se |
Estimated standard error of the mean estimator. |
boot.means |
Bootstrap replicates of the mean estimates. |
boot.sds |
Bootstrap replicates of the standard deviation estimates. |
McGrath S., Katzenschlager S., Zimmer A.J., Seitel A., Steele R., and Benedetti A. (2023). Standard error estimation in meta-analysis of studies reporting medians. Statistical Methods in Medical Research. 32(2):373-388.
Cai S., Zhou J., and Pan J. (2021). Estimating the sample mean and standard deviation from order statistics and sample size in meta-analysis. Statistical Methods in Medical Research. 30(12):2701-2719.
mln.mean.sd
## Generate S2 summary data
set.seed(1)
n <- 250
x <- stats::rlnorm(n, 5, 0.25)
quants <- stats::quantile(x, probs = c(0, 0.5, 1))
## Estimate the mean and its standard error
res <- mln.mean.sd(min.val = quants[1], med.val = quants[2], max.val = quants[3],
n = n)
get_SE(res)$est.se
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.