Monte Carlo simulation of power for linear model with interaction
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
power-analysis-paramtest-3iv.png
power-analysis-paramtest-3iv.r
power-analysis-paramtest.png
power-analysis-paramtest.r

README.md

lm-interaction-power

Monte Carlo simulation of power for linear model with interactions using the superb paramtest package.

Two independent variables

Assumptions:

  • statistical test: lm
  • alpha: .05
  • predictor effect sizes:
    • b1: .5 (sd: 1)
    • b2: .15 (sd: 1)
    • b1 * b2: .10
  • residual variance: yvar <- sqrt(1 - b1^2 - b2^2 - b3^2)

Three independent variables

Assumptions:

Just look at the source code...