fuse: Fuse cell means and pool SDs to turn a many cells into two...

Description Usage Arguments Examples

View source: R/fuse.R

Description

Often you need to calculate an effect size from a 2×2 (or more complex!) study design. Use this function to combine the relevant cells into just two cells for entry into your spreadsheet.

Usage

1
fuse(m1, sd1, n1, m2, sd2, n2)

Arguments

m1

Vector of means to pool into Group 1

sd1

Vector of SDs to pool into Group 1

n1

Vector of cell ns to pool into Group 1

m2

Vector of means to pool into Group 2

sd2

Vector of SDs to pool into Group 2

n2

Vector of cell ns to pool into Group 2

Examples

1
2
3
4
5
6
fuse(m1 = c(2.9, 3.8),
    m2 = c(4.9, 2.8),
    sd1 = c(1.3, 1.8),
    sd2 = c(0.7, 1.3),
    n1 = c(25, 25),
    n2 = c(25, 25))

Joe-Hilgard/hilgard documentation built on May 14, 2020, 9:15 p.m.