Click or drag to resize

BivariateSampleLinearLogisticRegression Method

Computes the best-fit linear logistic regression from the data.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
public LinearLogisticRegressionResult LinearLogisticRegression()

Return Value

Type: LinearLogisticRegressionResult
The fit result.
InsufficientDataExceptionThere are fewer than three data points.
InvalidOperationExceptionThere 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.

See Also