IMSL C# Numerical Library

CategoricalGenLinModel Constructor 

Constructs a new CategoricalGenLinModel.

public CategoricalGenLinModel(
   double[,] x,
   DistributionParameterModel model
);

Parameters

x
A double input matrix containing the data where the number of rows in the matrix is equal to the number of observations.
model
An int scalar which specifies the distribution of the response variable and the function used to model the distribution parameter.

Remarks

Use one of the class members from the following table. The lower bound given in the table is the minimum possible value of the response variable:

Model Distribution FunctionLower-bound
0PoissonExponential 0
1Negative BinomialLogistic 0
2LogarithmicLogistic 1
3BinomialLogistic 0
4BinomialProbit 0
5BinomialLog-log 0

Let \gamma be the dot product of a row in the design matrix with the parameters (plus the fixed parameter, if used). Then, the functions used to model the distribution parameter are given by:

NameFunction
Exponentiale^{\gamma}
Logistice^{\gamma}/({1+e^{
            \gamma}})
Probit\Phi(\gamma) (where \Phi is the normal cdf)
Log-log1-e^{-\gamma}

See Also

CategoricalGenLinModel Class | Imsl.Stat Namespace