power.mean1: Approximates the power of a one-sample t-test for a planned...

View source: R/statpsych1.R

power.mean1R Documentation

Approximates the power of a one-sample t-test for a planned sample size

Description

Computes the approximate power of a one-sample t-test for a planned sample size. For a conservatively low power approximation, set the variance planning value to the largest value within its plausible range, and set the effect size to a minimally interesting value.

Usage

power.mean1(alpha, n, var, es)

Arguments

alpha

alpha level for hypothesis test

n

planned sample size

var

planning value of response variable variance

es

planning value of mean minus hypothesized value

Value

Returns the approximate power of the test

Examples

power.mean1(.05, 15, 80.5, 7)

# Should return:
#          Power
# [1,] 0.8021661



statpsych documentation built on July 9, 2023, 6:50 p.m.