Compute Power for Comparing Two Independent Correlations Takes correlations and range of values
indcorr(r1, r2, nlow, nhigh, propn1 = 0.5, alpha = 0.05, tails = 2, by = 1)
Correlation for Group 1
Correlation for Group 2
Starting sample size
Ending sample size
Proportion of sample in first group (default is .50 for equally size groups)
Type I error (default is .05)
one or two-tailed tests (default is 2)
Incremental increase in sample size from low to high
Power for Comparing Two Independent Correlations
# NOT RUN { indcorr(r1=.3,r2=.1,nlow=200,nhigh=800,by=50, tails=1) # }
Run the code above in your browser using DataCamp Workspace