tests/testthat/_snaps/hosmer-lemeshow.md

hosmer lemeshow test prints the correct output

Code
  k
Output
             Partition for the Hosmer & Lemeshow Test            
  --------------------------------------------------------------
                          def = 1                 def = 0        
  Group    Total    Observed    Expected    Observed    Expected 
  --------------------------------------------------------------
    1       20         0          0.29         20        19.71   
    2       21         1          0.74         20        20.26   
    3       19         0          1.05         19        17.95   
    4       22         2          2.04         20        19.96   
    5       18         2          2.93         16        15.07   
    6       20         4          4.47         16        15.53   
    7       20         9          6.17         11        13.83   
    8       21         9          8.93         12        12.07   
    9       19         13        11.16         6          7.84   
   10       20         13        15.22         7          4.78   
  --------------------------------------------------------------

       Goodness of Fit Test      
  ------------------------------
  Chi-Square    DF    Pr > ChiSq 
  ------------------------------
    5.8839      8       0.6602   
  ------------------------------


Try the blorr package in your browser

Any scripts or data that you put into this service are public.

blorr documentation built on April 3, 2025, 6:01 p.m.