|
MultinomialLogisticRegressionGetOddsRatio Method (Int32, Int32)
|
Gets the Odds Ratio for a given coefficient.
Namespace:
Accord.Statistics.Models.Regression
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public double GetOddsRatio(
int category,
int coefficient
)
Public Function GetOddsRatio (
category As Integer,
coefficient As Integer
) As Double
Request Example
View SourceParameters
- category
- Type: SystemInt32
The category index. - coefficient
- Type: SystemInt32
The coefficient's index. The first value
(at zero index) is the intercept value.
Return Value
Type:
Double
The Odds Ratio for the given coefficient.
Remarks
The odds ratio can be computed raising Euler's number
(e ~~ 2.71) to the power of the associated coefficient.
See Also