<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd="http://schemas.google.com/g/2005"><id>tag:blogger.com,1999:blog-7958828565254404797.post6919942535257967268..comments</id><updated>2024-12-13T03:11:35.450-08:00</updated><title type='text'>Comments on ListenData: R Function : Gain and Lift Table</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.listendata.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html'/><link rel="hub" href="http://pubsubhubbub.appspot.com/"/><author><name>Deepanshu Bhalla</name><uri>http://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-5537662693621813338</id><published>2019-10-07T02:23:05.624-07:00</published><updated>2019-10-07T02:23:05.624-07:00</updated><title type='text'>Thanks for this lovely function Deepanshu ,you mad...</title><content type='html'>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 interested</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/5537662693621813338'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/5537662693621813338'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1570440185624#c5537662693621813338' title=''/><author><name>AbhinavB</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-6939909"/><gd:extendedProperty name="blogger.displayTime" value="October 7, 2019 at 2:23 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-5051446935632016274</id><published>2019-09-24T13:54:53.451-07:00</published><updated>2019-09-24T13:54:53.451-07:00</updated><title type='text'>Thanks.</title><content type='html'>Thanks.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/5051446935632016274'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/5051446935632016274'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1569358493451#c5051446935632016274' title=''/><author><name>Nethra Sambamoorthi</name><uri>https://www.blogger.com/profile/16763916428359975711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1032705374"/><gd:extendedProperty name="blogger.displayTime" value="September 24, 2019 at 1:54 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-2307356705844912487</id><published>2019-07-11T06:45:01.404-07:00</published><updated>2019-07-11T06:45:01.404-07:00</updated><title type='text'>found it very useful. thanks a lot for posting.</title><content type='html'>found it very useful. thanks a lot for posting.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/2307356705844912487'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/2307356705844912487'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1562852701404#c2307356705844912487' title=''/><author><name>swaroop</name><uri>https://www.blogger.com/profile/08946692294132816523</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1699795935"/><gd:extendedProperty name="blogger.displayTime" value="July 11, 2019 at 6:45 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-4833917540383311540</id><published>2018-11-09T02:39:39.496-08:00</published><updated>2018-11-09T02:39:39.496-08:00</updated><title type='text'>How to get which customers are in top 3 deciles fr...</title><content type='html'>How to get which customers are in top 3 deciles from gains plot? I mean how to retrieve those observations from top deciles?<br /></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/4833917540383311540'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/4833917540383311540'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1541759979496#c4833917540383311540' title=''/><author><name>Prasanth Sreerama</name><uri>https://www.blogger.com/profile/07514629026649789683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1041167725"/><gd:extendedProperty name="blogger.displayTime" value="November 9, 2018 at 2:39 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-2507750836307219506</id><published>2018-08-12T03:29:35.161-07:00</published><updated>2018-08-12T03:29:35.161-07:00</updated><title type='text'>Hi, I am keep getting this error when trying to cr...</title><content type='html'>Hi, I am keep getting this error when trying to create a table with lift function: &quot;error in lift.default: &#39;x&#39; should be a formula&quot;. Would you be able to help me with it? </content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/2507750836307219506'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/2507750836307219506'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1534069775161#c2507750836307219506' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-6939909"/><gd:extendedProperty name="blogger.displayTime" value="August 12, 2018 at 3:29 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-8573693853815266822</id><published>2018-08-10T10:38:08.301-07:00</published><updated>2018-08-10T10:38:08.301-07:00</updated><title type='text'>depvar : Dependent Variable
predcol : Predicted Pr...</title><content type='html'>depvar : Dependent Variable<br />predcol : Predicted Probability column</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/8573693853815266822'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/8573693853815266822'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1533922688301#c8573693853815266822' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/3101955827462443406'/><author><name>Deepanshu Bhalla</name><uri>https://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-966036103"/><gd:extendedProperty name="blogger.displayTime" value="August 10, 2018 at 10:38 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-3101955827462443406</id><published>2018-08-04T13:42:47.749-07:00</published><updated>2018-08-04T13:42:47.749-07:00</updated><title type='text'>Wt is depvar and predcol pls explain
</title><content type='html'>Wt is depvar and predcol pls explain<br /></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/3101955827462443406'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/3101955827462443406'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1533415367749#c3101955827462443406' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/05828374345204680697</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-746329615"/><gd:extendedProperty name="blogger.displayTime" value="August 4, 2018 at 1:42 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-641828827073484381</id><published>2017-10-26T16:52:00.343-07:00</published><updated>2017-10-26T16:52:00.343-07:00</updated><title type='text'>I keep getting this error:
Error in `[.data.frame`...</title><content type='html'>I keep getting this error:<br />Error in `[.data.frame`(helper, , &quot;predcol&quot;) : undefined columns selected<br />Calls: lift -&gt; ntile -&gt; [ -&gt; [.data.frame<br /><br />I&#39;m not able to understand why. <br /><br />PS I love this post!</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/641828827073484381'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/641828827073484381'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1509061920343#c641828827073484381' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/05659427576284048955</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1192297122"/><gd:extendedProperty name="blogger.displayTime" value="October 26, 2017 at 4:52 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1364053248420494086</id><published>2016-12-05T08:37:52.613-08:00</published><updated>2016-12-05T08:37:52.613-08:00</updated><title type='text'>It is because some of predicted probability scores...</title><content type='html'>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 = &quot;first&quot; after groups = 10 in the code. Revised code would be -<br />gaint = gains(actual= valgain[,1], predicted=pred ,groups=10, ties.method = &quot;first&quot;)<br /><br />Hope it helps!</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/1364053248420494086'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/1364053248420494086'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1480955872613#c1364053248420494086' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/9008655187626701678'/><author><name>Deepanshu Bhalla</name><uri>https://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-966036103"/><gd:extendedProperty name="blogger.displayTime" value="December 5, 2016 at 8:37 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-9008655187626701678</id><published>2016-12-05T08:07:07.910-08:00</published><updated>2016-12-05T08:07:07.910-08:00</updated><title type='text'>Thanks for the code. However, after running it, th...</title><content type='html'>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. </content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/9008655187626701678'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/9008655187626701678'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1480954027910#c9008655187626701678' title=''/><author><name>Sanjoy</name><uri>https://www.blogger.com/profile/09869819180657419435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-36682400"/><gd:extendedProperty name="blogger.displayTime" value="December 5, 2016 at 8:07 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-3268805478277998081</id><published>2015-11-18T18:45:26.730-08:00</published><updated>2015-11-18T18:45:26.730-08:00</updated><title type='text'>excelente</title><content type='html'>excelente</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/3268805478277998081'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/6919942535257967268/comments/default/3268805478277998081'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html?showComment=1447901126730#c3268805478277998081' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/09834655851429756581</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2015/06/r-function-gain-and-lift-table.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-6919942535257967268' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/6919942535257967268' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-263580071"/><gd:extendedProperty name="blogger.displayTime" value="November 18, 2015 at 6:45 PM"/></entry></feed>