MultivariateMultiLinearRegression Method (IReadOnlyListDouble, IReadOnlyListIReadOnlyListDouble) |
Namespace: Meta.Numerics.Statistics
public static MultiLinearRegressionResult MultiLinearRegression( IReadOnlyList<double> yColumn, IReadOnlyList<IReadOnlyList<double>> xColumns )
Exception | Condition |
---|---|
NullReferenceException | yColumn is , or xColumns is , or one of the x-columns in the list is . |
DimensionMismatchException | Not all of the columns contain the same number of observations. |
InsufficientDataException | There are too few observations to perform the fit. |
Note that the xColumns argument is column-oriented, i.e. it is a list of columns, not row-oriented, i.e. a list of rows. Either of these would match the method signature, but only column-oriented inputs will produce correct results.