Cook's distances, for the rows of non-zero prior weight, for a glm fit. Equivalent to R's cooks.distance().
glm
cooks.distance()
const fit = glm([1, 2, 3, 4, 5, 6], [0, 0, 1, 0, 1, 1], { family: "binomial" });glmCooksDistance(fit); // [0.013283, 0.078894, 0.71087, 0.71087, 0.078894, 0.013283] Copy
const fit = glm([1, 2, 3, 4, 5, 6], [0, 0, 1, 0, 1, 1], { family: "binomial" });glmCooksDistance(fit); // [0.013283, 0.078894, 0.71087, 0.71087, 0.078894, 0.013283]
Cook's distances, for the rows of non-zero prior weight, for a
glmfit. Equivalent to R'scooks.distance().