indb: Power for Comparing Independent Coefficients in Multiple...

View source: R/indb.R

indbR Documentation

Power for Comparing Independent Coefficients in Multiple Regression with Two or Three Predictors Requires correlations between all variables as sample size. Means, sds, and alpha are option. Also computes Power(All)

Description

Power for Comparing Independent Coefficients in Multiple Regression with Two or Three Predictors Requires correlations between all variables as sample size. Means, sds, and alpha are option. Also computes Power(All)

Usage

indb(
  ry1_1,
  ry2_1,
  ry3_1 = NULL,
  r12_1,
  r13_1 = NULL,
  r23_1 = NULL,
  n1,
  ry1_2,
  ry2_2,
  ry3_2 = NULL,
  r12_2,
  r13_2 = NULL,
  r23_2 = NULL,
  n2,
  alpha = 0.05
)

Arguments

ry1_1

Correlation between DV (y) and first predictor (1), first test

ry2_1

Correlation between DV (y) and second predictor (2), first test

ry3_1

Correlation between DV (y) and third predictor (3), first test

r12_1

Correlation between first (1) and second predictor (2), first test

r13_1

Correlation between first (1) and third predictor (3), first test

r23_1

Correlation between second (2) and third predictor (3), first test

n1

Sample size first test

ry1_2

Correlation between DV (y) and first predictor (1), second test

ry2_2

Correlation between DV (y) and second predictor (2), second test

ry3_2

Correlation between DV (y) and third predictor (3), second test

r12_2

Correlation between first (1) and second predictor (2), second test

r13_2

Correlation between first (1) and third predictor (3), second test

r23_2

Correlation between second (2) and third predictor (3), second test

n2

Sample size second test

alpha

Type I error (default is .05)

Value

Power for Comparing Independent Coefficients in Multiple Regression

Examples

indb(ry1_1=.40, ry2_1=.40, ry3_1 =-.40, r12_1=-.15,r13_1=-.60, r23_1=.25,
ry1_2=.40, ry2_2=.10, ry3_2 =-.40, r12_2=-.15,r13_2=-.60, r23_2=.25,
n1=50,n2=50, alpha=.05)

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