convert_mean: Converting means and standard deviations

View source: R/convert-mean.r

convert_meanR Documentation

Converting means and standard deviations

Description

Converting estimated means and standard deviations in experimental and contorol groups to the effect size estimates and the within studies standard errors vector

Usage

convert_mean(n1, m1, s1, n2, m2, s2, pooled = FALSE)

Arguments

n1

A vector of number of observations in experimental group

m1

A vector of estimated mean in experimental group

s1

A vector of standard deviation in experimental group

n2

A vector of number of observations in experimental group

m2

A vector of estimated mean in experimental group

s2

A vector of standard deviation in experimental group

pooled

logical; if TRUE, a pooled variance is used. The default is FALSE.

Value

A data.frame of study data.

  • y: A numeric vector of the effect size estimates.

  • se: A numeric vector of the within studies standard error estimates.

Examples

require("flexmeta")
data("clbp")
dat <- convert_mean(clbp$n1, clbp$m1, clbp$s1, clbp$n2, clbp$m2, clbp$s2)
print(dat)

nshi-stat/pimeta documentation built on June 8, 2025, 10:23 p.m.