Click or drag to resize
CategoricalGenLinModel Constructor
Constructs a new CategoricalGenLinModel.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public CategoricalGenLinModel(
	double[,] x,
	CategoricalGenLinModelDistributionParameterModel model
)

Parameters

x
Type: SystemDouble
A double input matrix containing the data where the number of rows in the matrix is equal to the number of observations.
model
Type: Imsl.StatCategoricalGenLinModelDistributionParameterModel
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:

ModelDistributionFunctionLower-bound
0PoissonExponential0
1Negative BinomialLogistic 0
2LogarithmicLogistic1
3BinomialLogistic0
4BinomialProbit0
5BinomialLog-log0

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