BivariateSample.LinearLogisticRegression Method |
Namespace: Meta.Numerics.Statistics
Exception | Condition |
---|---|
InsufficientDataException | There are fewer than three data points. |
InvalidOperationException | There is a y-value other than 0 or 1. |
Linear logistic regression is a way to fit binary outcome data to a linear model.
The method assumes that binary outcomes are encoded as 0 and 1. If any y-values other than 0 and 1 are encountered, it throws an InvalidOperationException.
The fit result is two-dimensional. The first parameter is a, the second b.