Description Usage Arguments Details Value Dependencies Author(s)
Computes the matrix of second derivatives (Hessian) of the log'likelihood function H=XWX^T, and the equation X(y-P_i) that composes the formula to compute the estimated β's.
1 |
formula |
a string character to be transformed as an object of class |
beta |
is a list of regression coefficients (estimated |
family |
a string character with the name of the error distribution and link function to be used in the analysis.
If |
The Hessian (matrix of second derivatives) of the log-likelihood is
H = XWX^T
where W (computed by findW
) is a diagonal matrix of the derivatives P_i (computed by findPi
),
and X
is the matrix of observations (computed by getVarbyFormula
).
The solutions for δ is
δ_k = (XW_kX^T)^-1 X(y-P_i)
and for the partial derivatives computation, it was divided in two equations
W = (XW_kX^T)
Y = X(y-P_i)
where W is the current matrix of derivatives, y is the vector of observed responses and P_i is the vector of probabilities.
A list with components:
xtxw |
a data matrix, the Hessian matrix. |
xtyp |
a data matrix, the Y matrix that represents a partial computation of derivatives. |
getVarbyFormula
, findPi
, findW
Paula R. Costa e Silva
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.