Request for display of error messages and ability to check observed and expected values about performance_hosmer() #578
Labels
Docs 📚
Something to be adressed in docs and/or vignettes
Enhancement 💥
Implemented features can be improved or revised
For example, when trying to run the Hosmer-Lemeshow goodness-of-fit test
for the following multiple logistic regression analysis, the following
error message is displayed.
As the error message indicates, this is because the range of quantiles
cannot be uniquely determined when taking deciles.
However, I think this error message alone is somewhat informational and
it is difficult to understand why the calculation was not completed
correctly.
For example, I think it would be more informative if the following error
message were displayed to indicate that the calculation could not be
performed with the specified n_bins when the quantile range could not be
determined.
I think this would provide a little information in case of errors.
performance_hosmer(model)
Also, I would like to refer to the observed and expected value
information for each subgroup after the calculation to check for biased
subgroups. For example, so that I can call it up in
chisq.test()
using$
.For example, the following would achieve this.
This observed and expected value information does not have to be
displayed when
print.performance_hosmer()
is done, but it would benice if it could be called out with
$
.Also, I think the value in the document should be “An object of class
performance_hosmer with the following values”, not “An object of class
hoslem_test with the following values”.
Of course, I know there are various arguments for the Hosmer-Lemeshow
test, I would appreciate it if you would consider whether or not to
implement each of these, and I don’t care how they are implemented.
If these are as suggested, I’ll do a pull request, if not, that’s fine.
The text was updated successfully, but these errors were encountered: