estimate_eta | R Documentation |
Use an extension of the SLOE estimator to estimate \eta = \var(X_{\mathrm{new}}^\top \hat{\beta})^{1/2}
,
where X_{\mathrm{new}}
is a new obs. and \hat{\beta}
is the MLE.
estimate_eta(X, y, beta_hat, family)
X |
A covariate matrix of size n*p. |
y |
A vector of responses of length n. |
beta_hat |
The MLE vector of length p. |
family |
A GLM family, with family and link. See also [compute_deriv()]. |
Let f_y(t)
be the negative log-likelihood when the response is y
and linear predictor is t
.
Define w_i = x_i^\top H^{-1}x_i
and t_i = \ x_i^\top \hat{\beta}
, where x_i
is the i-th obs., and
H
is the Hessian of the negative log-likelihood evaluated at the \hat{\beta}
. Let
S_i = x_i^\top \hat{\beta} + q_i f'_{y_i}(t_i),
where
q_i = \frac{w_i}{1-w_i f''_{y_i}(t_i)}.
Then, the SLOE estimator is defined to be
\hat{\eta}^2 = \frac{1}{n}\sum_{i=1}^n S_i^2 - \left(\frac{1}{n}\sum_{i=1}^n S_i\right)^2.
A numeric value of the estimated \hat{\eta}
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.