Class RegressorsForGLMEx2

java.lang.Object
com.imsl.test.example.stat.RegressorsForGLMEx2

public class RegressorsForGLMEx2 extends Object

Sets up data for a two-way analysis of covariance.

In this example, a two-way analysis of covariance model containing all the interaction terms is fit. First, RegressorsForGLM is used to produce a matrix of regressors, regressors, from the data x. Then, regressors is used as the input matrix into Regression to produce the final fit. The mapping from effects to columns in the matrix regressors is given by the jagged array returned by getEffectsColumns. Each row in this matrix gives the column number for the corresponding effect.

See Also:
  • Constructor Details

    • RegressorsForGLMEx2

      public RegressorsForGLMEx2()
  • Method Details

    • main

      public static void main(String[] arg)