tag:blogger.com,1999:blog-7958828565254404797.post6919942535257967268..comments2024-03-29T00:02:14.892-07:00Comments on ListenData: R Function : Gain and Lift TableDeepanshu Bhallahttp://www.blogger.com/profile/09802839558125192674noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-7958828565254404797.post-55376626936218133382019-10-07T02:23:05.624-07:002019-10-07T02:23:05.624-07:00Thanks for this lovely function Deepanshu ,you mad...Thanks for this lovely function Deepanshu ,you made my job very easy.<br />Are you full time a listen data person now ? We can collaborate on few projects on datascience if you are interestedAbhinavBnoreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-50514469356320162742019-09-24T13:54:53.451-07:002019-09-24T13:54:53.451-07:00Thanks.Thanks.Nethra Sambamoorthihttps://www.blogger.com/profile/16763916428359975711noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-23073567058449124872019-07-11T06:45:01.404-07:002019-07-11T06:45:01.404-07:00found it very useful. thanks a lot for posting.found it very useful. thanks a lot for posting.swaroophttps://www.blogger.com/profile/08946692294132816523noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-48339175403833115402018-11-09T02:39:39.496-08:002018-11-09T02:39:39.496-08:00How to get which customers are in top 3 deciles fr...How to get which customers are in top 3 deciles from gains plot? I mean how to retrieve those observations from top deciles?<br />Prasanth Sreeramahttps://www.blogger.com/profile/07514629026649789683noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-25077508363072195062018-08-12T03:29:35.161-07:002018-08-12T03:29:35.161-07:00Hi, I am keep getting this error when trying to cr...Hi, I am keep getting this error when trying to create a table with lift function: "error in lift.default: 'x' should be a formula". Would you be able to help me with it? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-85736938538152668222018-08-10T10:38:08.301-07:002018-08-10T10:38:08.301-07:00depvar : Dependent Variable
predcol : Predicted Pr...depvar : Dependent Variable<br />predcol : Predicted Probability columnDeepanshu Bhallahttps://www.blogger.com/profile/09802839558125192674noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-31019558274624434062018-08-04T13:42:47.749-07:002018-08-04T13:42:47.749-07:00Wt is depvar and predcol pls explain
Wt is depvar and predcol pls explain<br />Anonymoushttps://www.blogger.com/profile/05828374345204680697noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-6418288270734843812017-10-26T16:52:00.343-07:002017-10-26T16:52:00.343-07:00I keep getting this error:
Error in `[.data.frame`...I keep getting this error:<br />Error in `[.data.frame`(helper, , "predcol") : undefined columns selected<br />Calls: lift -> ntile -> [ -> [.data.frame<br /><br />I'm not able to understand why. <br /><br />PS I love this post!Anonymoushttps://www.blogger.com/profile/05659427576284048955noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-13640532484204940862016-12-05T08:37:52.613-08:002016-12-05T08:37:52.613-08:00It is because some of predicted probability scores...It is because some of predicted probability scores are equal so one or two groups are not of same size. I am assuming the difference of number of observations in each group is very minimal. For example, c(0.1,0.2,0.3,0.3,0.4,0.5) - you cannot assign different rank to 0.3 in this vector.<br /><br />To have same observations in each group, you can add ties.method = "first" after groups = 10 in the code. Revised code would be -<br />gaint = gains(actual= valgain[,1], predicted=pred ,groups=10, ties.method = "first")<br /><br />Hope it helps!Deepanshu Bhallahttps://www.blogger.com/profile/09802839558125192674noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-90086551876267016782016-12-05T08:07:07.910-08:002016-12-05T08:07:07.910-08:00Thanks for the code. However, after running it, th...Thanks for the code. However, after running it, the gain table that I am getting, its not dividing the data into 10 equal groups, each group is having different observation number, ideally which should not be the case. Need help on this. Sanjoyhttps://www.blogger.com/profile/09869819180657419435noreply@blogger.comtag:blogger.com,1999:blog-7958828565254404797.post-32688054782779980812015-11-18T18:45:26.730-08:002015-11-18T18:45:26.730-08:00excelenteexcelenteAnonymoushttps://www.blogger.com/profile/09834655851429756581noreply@blogger.com