convert_mean: Converting means and standard deviations

Description Usage Arguments Value Examples

View source: R/convert-mean.r

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

1
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.

Examples

1
2
3
4
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 May 5, 2020, 8:01 p.m.