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

View source: R/regintR2.R

regintR2R Documentation

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

regintR2(R2Mod=.092,R2Ch=.032,mod_pred=3, ch_pred=1,nlow=100,nhigh=400,by=20)

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