powerCalc: Power Calculation

Description Usage Arguments Author(s) Examples

View source: R/powerCalc.R

Description

Conduct a power calculation to make sure that you retain enough respondents to calculate a differential treatment effect if one likely exists.

Usage

1
powerCalc(model, treatment_levels, x_levels, alpha = 0.05, side = "two-sided")

Arguments

model

Model object from weighted regression that you wish to conduct a power analysis with.

treatment_levels

How many treatment conditions are there?

x_levels

How many levels does the factor variable that is interacted with the treatment have?

alpha

Default = 0.05

side

Default = "two-sided"

Author(s)

Jeffrey Ziegler (<jeffrey.ziegler[at]emory.edu>)

Examples

1

zieglerjef/openEnded documentation built on Nov. 30, 2020, 2:03 p.m.