This function analyzes whether in different vote bins the trained RF makes predictions with different reliability. Only for RF-prediction in case of binary (0/1) classification. Expected result: The larger the fraction of trees voting for class 0 is, the smaller is the percentage of true class-1- cases in this vote bin. This function is somewhat specialized for the DMC2010-task.
tdmModVote2Target(vote0, pred, target)
vector: which fraction of trees votes for class 0?
vector: the predicted class for each record (0/1)
vector: the true class for each vector (0/1)
a data frame with columns
vote cut v
number of cases with vote fraction in [v[i-1],v[i]]
fraction of 0-predictions
fraction of correct predictions
fraction of true 1-cases