depcorr1: Compute Power for Comparing Two Dependent Correlations, One...

Description Usage Arguments Value Examples

View source: R/depcorr1.R

Description

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

Usage

1
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

1
depcorr1(r1y=.3,r2y=.04,r12 = .2, nlow=100,nhigh=300,by=10, tails=2)

Example output

     n  Power
1  100 0.5529
2  110 0.5949
3  120 0.6340
4  130 0.6702
5  140 0.7035
6  150 0.7341
7  160 0.7620
8  170 0.7875
9  180 0.8105
10 190 0.8314
11 200 0.8503
12 210 0.8673
13 220 0.8825
14 230 0.8962
15 240 0.9084
16 250 0.9192
17 260 0.9289
18 270 0.9375
19 280 0.9452
20 290 0.9519
21 300 0.9579

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