Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-411

Multiple Regression newSampleData methods inconsistently create / omit intercepts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.2
    • Labels:
      None

      Description

      The newSampleData(double[], nrows, ncols) method used in the unit tests adds a unitary column to the design matrix, resulting in an intercept term being estimated among the regression parameters. The other newSampleData methods do not do this, forcing users to add the column of "1"s to estimate models with intercept. Behavior should be consistent and users should not have to add the column.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                psteitz Phil Steitz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: