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

Description Usage Arguments Value Examples

View source: R/indcorr.R

Description

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

Usage

1
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

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

Example output

    n1  n2  Power
1  100 100 0.4254
2  125 125 0.4956
3  150 150 0.5590
4  175 175 0.6160
5  200 200 0.6669
6  225 225 0.7119
7  250 250 0.7517
8  275 275 0.7866
9  300 300 0.8171
10 325 325 0.8436
11 350 350 0.8666
12 375 375 0.8865
13 400 400 0.9036

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