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

Description Usage Arguments Value Examples

View source: R/pairt.R

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

1
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

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

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.