statsmodels.genmod.generalized_estimating_equations.GEEResults.get_hat_matrix_diag¶
-
GEEResults.get_hat_matrix_diag(observed=
True
)¶ Compute the diagonal of the hat matrix
- Parameters:¶
- observedbool
If true, then observed hessian is used in the hat matrix computation. If false, then the expected hessian is used. In the case of a canonical link function both are the same.
- Returns:¶
- hat_matrix_diag
ndarray
The diagonal of the hat matrix computed from the observed or expected hessian.
- hat_matrix_diag
Last update:
Nov 14, 2024