public class SelectionRegressionEx2 extends Object
Finds the best regressions using Mallow's \(C_p\) criterion.
This example uses the same data set as example
SelectionRegressionEx1
, but Mallow's \(C_p\) statistic is used as the
criterion rather than \(R^2\). Note that when Mallow's \(C_p\) statistic (or
adjusted \(R^2\)) is specified, the method setMaximumBestFound
is used to indicate the total number of "best" regressions (rather than
indicating the number of best regressions per subset size, as in the case of
the \(R^2\) criterion). In this example, the three best regressions are found
to be \((1, 2), (1, 2, 4)\), and \((1, 2, 3)\).
Constructor and Description |
---|
SelectionRegressionEx2() |
Copyright © 2020 Rogue Wave Software. All rights reserved.