pwr2ppl (version 0.1.1)

corr: Compute power for Pearson's Correlation Takes correlation and range of values

Description

Compute power for Pearson's Correlation Takes correlation and range of values

Usage

corr(r, nlow, nhigh, alpha = 0.05, tails = 2, by = 1)

Arguments

r

Correlation

nlow

Starting sample size

nhigh

Ending sample size

alpha

Type I error (default is .05)

tails

one or two-tailed tests (default is 2)

by

Incremental increase in sample size from low to high

Value

Power for Pearson's Correlation

Examples

Run this code
# NOT RUN {
corr(r=.30, nlow=60, nhigh=100,by=2)
# }

Run the code above in your browser using DataLab