I am trying to calculate Information value of variable which has weights,
VarA=c(12.1667,0.9235,6.2262,6.5217,4.7135,14.2195,10.7429,7.2917,4.6824,12.0778)
BinaryVar=c(1,1,1,1,1,0,0,0,0,0)
Weights=c(1.00000,1.00000,1.00000,1.00000,1.00000,1.70588,6.35160,8.93143,1.56485,8.93143)
df=data.frame(VarA,BinaryVar,Weights)
trying to calculate Information values of varA based on the binary variable BinaryVar by passing weights from Weights variable.
There are few function in R where Information Values can be calculated by passing two variables in arguments, but I could not find how to send weights when information values being calculated. below are the few function I have tried,
create_infotables() from package="Information"
IV() from package="InformationValue"