pairt: Compute power for a Paired t-test Takes means, sd, and sample...

View source: R/pairt.R

pairtR Documentation

Compute power for a Paired t-test Takes means, sd, and sample sizes. Alpha is .05 by default, alternative values may be entered by user. correlation (r) defaults to .50.

Description

Compute power for a Paired t-test Takes means, sd, and sample sizes. Alpha is .05 by default, alternative values may be entered by user. correlation (r) defaults to .50.

Usage

pairt(m1 = NULL, m2 = NULL, s = NULL, n = NULL, r = NULL, alpha = 0.05)

Arguments

m1

Mean for Pre Test

m2

Mean for Post Test

s

Standard deviation

n

Sample size

r

Correlation pre-post measures (default is .50)

alpha

Type I error (default is .05)

Value

Power for the Paired t-test

Examples

pairt(m1=25,m2=20, s = 5, n = 25, r = .5)

pwr2ppl documentation built on Sept. 6, 2022, 5:06 p.m.