This function plots the density distribution of the regression or intervention (dichotomous: interrupted time series) effects after simulation for a given alpha.

plotRepeatSimPowerSCA(res, ar, wES = NULL, alpha)

Arguments

res

result from simPowerSCA

ar

select autoregression level

wES

weekend effect size used in simulation (can be NULL)

alpha

select type I error to be shown. Three options: .01, .05, .10.