Description Usage Arguments Details Value Note See Also
sandwich.vcov
and score.vcov
are two similar estimators
for the variance-covariance matrix of a probabilistic index model.
These functions are meant to be used within a call to pim
as a value for the argument vcov
.
1 2 3 | sandwich.vcov(fitted, X, Y, W, link, poset, ...)
score.vcov(fitted, X, Y, W, link, poset, ...)
|
fitted |
The fitted values (calculated as |
X |
the design matrix |
Y |
a numeric vector with pseudoresponses |
W |
a numeric vector with weights. If weights are not applicable,
set to |
link |
a character vector with the link function |
poset |
a list with the left and right indices. See |
... |
arguments passed to downstream methods. |
You can create your own estimating functions for the variance-covariance
matrix. To do so, you have to make sure that your function allows for
the exact same arguments. As the function pim.fit
calculates the
fitted values already, there's no need to incorporate the calculation of
these inside the function.
the variance-covariance matrix
You should only use score.vcov
in combination with an
identity link
sandwich.estimator
for more information on the
actual fitting process. pim
for a few examples in how
these are used
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.