indt: Compute power for an Independent Samples t-test Takes means,...

View source: R/indt.R

indtR Documentation

Compute power for an Independent Samples t-test Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user

Description

Compute power for an Independent Samples t-test Takes means, sds, and sample sizes for each group. Alpha is .05 by default, alternative values may be entered by user

Usage

indt(
  m1 = NULL,
  m2 = NULL,
  s1 = NULL,
  s2 = NULL,
  n1 = NULL,
  n2 = NULL,
  alpha = 0.05
)

Arguments

m1

Mean of first group

m2

Mean of second group

s1

Standard deviation of first group

s2

Standard deviation of second group

n1

Sample size for first group

n2

Sample size for second group

alpha

Type I error (default is .05)

Value

Power for Independent Samples t-test

Examples

indt(m1=22,m2=20,s1=5,s2=5,n1=99,n2=99)
indt(m1=1.3, m2=0, s1=4,s2=1,n1=78,n2=234)

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