Version 9 (modified by 14 years ago) (diff) | ,
---|
Package QltvRespModel
Max-likelihood and bayesian estimation of qualitative response models.
Weighted Boolean Regresions
Abstract class
@WgtBoolReg
is the base to inherit weighted boolean regressions as logit or probit or any other,
given just the scalar distribution function and the
corresponding density function
. In a weighted regression
each row of input data has a distinct weight in the likelihood function. For
example, it can be very usefull to handle with data extrated from an stratified
sample.
This class implements max-likelihood estimation by means of package NonLinGloOpt and bayesian simulation using BysSampler.
Let be
the regression input matrix
the vector of weights of each register
the regression output matrix
The hypotesis is that
The likelihood function is then
and its logarithm
The gradient of the logarithm of the likelihood function will be
and the hessian is
User can and should define scalar truncated normal or uniform prior information and
bounds for all variables for which he/she has robust knowledge.
When is infinite or unknown we will express a uniform
prior.
When
or unknown we will express that variable
has no lower bound.
When
or unknown we will express that variable
has no upper bound.
It's also allowed to give any set of constraining linear inequations if they
are compatible with lower and upper bounds
Weighted Logit Regression
Class @WgtLogit is an specialization of class @WgtBoolReg that handles with weighted logit regressions.
In this case we have that scalar distribution is the logistic one.
Weighted Probit Regression
Class @WgtProbit is an specialization of class @WgtBoolReg that handles with weighted probit regressions.
In this case we have that scalar distribution is the standard normal one.