tests/testthat/_snaps/bivariate-analysis.md

blr_bivariate_analysis prints the correct output

Code
  k
Output
                           Bivariate Analysis                           
  ---------------------------------------------------------------------
  Variable    Information Value    LR Chi Square    LR DF    LR p-value 
  ---------------------------------------------------------------------
   female           0.10              3.9350          1        0.0473   
    prog            0.43              16.1450         2        3e-04    
  ---------------------------------------------------------------------

blr_segment prints the correct output

Code
  k
Output
  Event By Attributes 
  -------------------
  pred           1s%  
  -------------------
   1             0.01 
   2             0.03 
   3             0.01 
   4             0.22 
  -------------------

blr_twoway_segment prints the correct output

Code
  k
Output
                           prog              
  -----------------------------------------
  honcomp     1       2       3       4     
  -----------------------------------------
    1     0.000   0.000   0.000   0.035   
  -----------------------------------------
    2     0.010   0.020   0.005   0.165   
  -----------------------------------------
    3     0.000   0.005   0.005   0.020   
  -----------------------------------------
Code
  k
Output
           Event Segmentation           
  -------------------------------------
    pred       n     1s     n%     1s%  
  -------------------------------------
     1        24     2     0.12    0.01 
     2        11     5     0.06    0.03 
     3        20     2     0.10    0.01 
     4        145    44    0.72    0.22 
  -------------------------------------

blr_woe_iv prints the correct output

Code
  k
Output
                             Weight of Evidence                             
  -------------------------------------------------------------------------
  levels    count_0s    count_1s    dist_0s    dist_1s        woe      iv   
  -------------------------------------------------------------------------
    1          38          7           0.26       0.13       0.67     0.08  
    2          65          40          0.44       0.75      -0.53     0.17  
    3          44          6           0.30       0.11       0.97     0.18  
  -------------------------------------------------------------------------

        Information Value       
  -----------------------------
  Variable    Information Value 
  -----------------------------
    prog           0.4329       
  -----------------------------

output from blr_woe_iv_stats is as expected

Code
  k
Output
  NULL


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.