pwr2ppl (version 0.1.1)

regintR2: Compute Power for Regression Interaction (R2 Change Approach)

Description

Compute Power for Regression Interaction (R2 Change Approach)

Usage

regintR2(R2Mod, R2Ch, mod_pred, ch_pred, nlow, nhigh, by = 1,
  alpha = 0.05)

Arguments

R2Mod

Full Model R2

R2Ch

Change in R2 Added by Interaction

mod_pred

Full Model Number of Predictors

ch_pred

Change Model Number of Predictors

nlow

starting sample size

nhigh

ending sample size

by

incremental increase in sample (e.g. nlow = 10, nhigh = 24, by = 2, produces estimates of 10, 12, and 14)

alpha

Type I error (default is .05)

Value

Power for Regression Interaction (R2 Change Approach)

Examples

Run this code
# NOT RUN {
regintR2(R2Mod=.092,R2Ch=.032,mod_pred=3, ch_pred=1,nlow=100,nhigh=400,by=20)
# }

Run the code above in your browser using DataLab