indcorr: Compute Power for Comparing Two Independent Correlations...

View source: R/indcorr.R

indcorrR Documentation

Compute Power for Comparing Two Independent Correlations Takes correlations and range of values

Description

Compute Power for Comparing Two Independent Correlations Takes correlations and range of values

Usage

indcorr(r1, r2, nlow, nhigh, propn1 = 0.5, alpha = 0.05, tails = 2, by = 1)

Arguments

r1

Correlation for Group 1

r2

Correlation for Group 2

nlow

Starting sample size

nhigh

Ending sample size

propn1

Proportion of sample in first group (default is .50 for equally size groups)

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 Comparing Two Independent Correlations

Examples

indcorr(r1=.3,r2=.1,nlow=200,nhigh=800,by=50, tails=1)

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