pwr2ppl (version 0.1.1)

depcorr1: Compute Power for Comparing Two Dependent Correlations, One Variable in Common Takes correlations and range of values

Description

Compute Power for Comparing Two Dependent Correlations, One Variable in Common Takes correlations and range of values

Usage

depcorr1(r1y, r2y, r12, nlow, nhigh, alpha = 0.05, tails = 2, by = 1)

Arguments

r1y

Correlation between the first predictor and the dependent variable

r2y

Correlation between the second predictor and the dependent variable

r12

Correlation between the first predictor and the second predictor

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 Comparing Dependent Correlations, One Variable in Common

Examples

Run this code
# NOT RUN {
depcorr1(r1y=.3,r2y=.04,r12 = .2, nlow=100,nhigh=300,by=10, tails=2)
# }

Run the code above in your browser using DataLab