| deploy.gof | R Documentation |
Turns a pre-trained ensemble meta into a deployable goodness-of-fit
test for any fitted model: it scores the model, then calibrates the
p-value by a per-dataset parametric bootstrap from the fitted model (so no
knowledge of the truth or the data-generating design is required). Validity
comes from the bootstrap, independent of how meta was trained.
deploy.gof(object, meta, B = 99, feature_fn = gof.features)
object |
A fitted binary logistic |
meta |
A pre-trained scorer: either a function |
B |
Number of parametric-bootstrap resamples (default 99). |
feature_fn |
Function mapping a fitted glm to its feature vector (default
|
A one-row data.frame with the score, B, and the
bootstrap p_value.
gof.features, cdef.gof.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.