Version 1 (modified by 14 years ago) (diff) | ,
---|
Package GrzLinModel
Max-likelihood and bayesian estimation of generalized linear models.
Weighted Generalized Regresions
Abstract class
@WgtReg
is the base to inherit weighted generalized linear regressions as poisson,
binomial, logit, 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.
Let be
the regression input matrix
the vector of weights of each register
the regression output matrix
the regression coefficients
the linear prediction
the linear prediction
the link function
the density fuciton of a distribution of the
Then we purpose that the average of the output is the inverse of the link function applyied to the linear predictor