Processing math: 100%

User Tools

Site Tools


manual:linear_regression

Power for Linear Regression

Description

Power calculation / sample size planning for linear regression based on F test.

Arguments

Among sample size, number of predictors, effect size, significance level, and power, one and only one can be left blank.

Sample Size

Provide the number of observations per group. Multiple sample sizes can be provided in two ways. First, multiple sample sizes can be supplied separated by white spaces, e.g., 100 150 200 will calculate power for the three sample sizes. A sequence of sample sizes can be generated using the method s:e:i with s denoting the starting sample size, e as ending sample size, and i as the interval. For example, 100:150:10 will generate a sequence 100 110 120 130 140 150.

By default, the sample size is 100.

Effect Size

The effect size to be used. Multiple effect sizes or a sequence of effect sizes can be supplied using the same method for sample size. By default, the value is 0.15.

f2 is the effect size measure as in Cohen (1988) that evaluates the impact of a set of predictors on an outcome. f2=R21R2 where R2 is population R2 of regression analysis.

When we are evaluating the impact of one set of predictors above and beyond a second set of predictors (or covariates). f2=R2ABR2A1R2AB where

  • R2A is variance accounted for by variable set A
  • R2AB is variance accounted for by variable set A and variable set B together.

Cohen suggests f2 values of 0.02, 0.15, and 0.35 represent small, medium, and large effect sizes.

For a regression model with p predictor, the numerator df u=p and the denominator df v=np1. If we compare two regression models, first with p1 predictors (smaller model) and the second with p2 predictors (larger model), then u=p2p1 and v=np21. Note that f2 is often calculated from R-squared. For example, if R2 is .4, then f2=.67.

By clicking the show button, a table is show to calculate the effect size and number of predictors based on the R2.

Number of predictors

The number of predictors for the reduced model (0 if for testing all predictors in a model) and full model.

Significance Level (alpha)

The significance level (Type I error rate) for power calculation withe the default 0.05.

Power

The power of the test.

Power curve

Whether to generate the power curve.

Note

A note (less than 200 characters) can be provided to provide basic information on the analysis.

manual/linear_regression.txt · Last modified: 2024/09/19 12:24 (external edit)