calculatepower function

Calculate Power

Calculate Power

Calculates the power of the model given the non-centrality parameter

calculatepower(X, L, lambda, alpha, degrees_of_freedom)

Arguments

  • X: The model matrix
  • L: The parameter matrix/vector
  • lambda: The non-centrality parameter for the F test
  • alpha: the specified type-I error
  • degrees_of_freedom: The number of degrees of freedom.

Returns

The power for a given parameter L, given the