<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Please suggest logic for the scenario in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143405#M28700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Hi Please suggest some logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;I have a data set like customer name and month wise count. (In starting third month they have introduced one scheme i want to find out whether the scheme is impacting the next month counts i.e is there are any decrease or increase in mar apr month counts. I want to highlight those records.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Dataset:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Custname Jan Feb Mar Apr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;pvr 15 20 5 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;adlabs 20 30 40 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;imax 15 25 5 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;cinemax 29 35 7 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;like this i have one lakh customers and four months count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;I want to see based on Jan Feb count is there any trend in Mar Apr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Suppose lets take PVR Jan feb it has increase but in march, apr it has decreased same as cinemax. Adlabs is increasing like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;I want to highlight those customers. Any thoughts/logic. TIA&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 18:57:12 GMT</pubDate>
    <dc:creator>kumarK</dc:creator>
    <dc:date>2014-12-09T18:57:12Z</dc:date>
    <item>
      <title>Hi Please suggest logic for the scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143405#M28700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Hi Please suggest some logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;I have a data set like customer name and month wise count. (In starting third month they have introduced one scheme i want to find out whether the scheme is impacting the next month counts i.e is there are any decrease or increase in mar apr month counts. I want to highlight those records.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Dataset:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Custname Jan Feb Mar Apr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;pvr 15 20 5 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;adlabs 20 30 40 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;imax 15 25 5 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;cinemax 29 35 7 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;like this i have one lakh customers and four months count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;I want to see based on Jan Feb count is there any trend in Mar Apr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Suppose lets take PVR Jan feb it has increase but in march, apr it has decreased same as cinemax. Adlabs is increasing like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #010101; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; background-color: #ffffff;"&gt;I want to highlight those customers. Any thoughts/logic. TIA&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 18:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143405#M28700</guid>
      <dc:creator>kumarK</dc:creator>
      <dc:date>2014-12-09T18:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Please suggest logic for the scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143406#M28701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Couple of things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only two months data would not be sufficient for a trend analysis. In order to highlight customers with increase/decrease counts just identify a logic like if sum of counts in Mar, Apr is greater than sum of counts in Jan, Feb then it would be considered as an increase otherwise a decrease. Without having such a logic it is hard to suggest a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 19:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143406#M28701</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-12-09T19:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Please suggest logic for the scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143407#M28702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data is too aggregated to suggest much as indicated above.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have data at a different level, i.e. weekly, daily?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 19:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143407#M28702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-09T19:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Please suggest logic for the scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143408#M28703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. The data is customer wise monthly count. How can we get trends in sas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 05:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143408#M28703</guid>
      <dc:creator>kumarK</dc:creator>
      <dc:date>2014-12-10T05:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Please suggest logic for the scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143409#M28704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK...its not a matter of trends in SAS its a matter of practice.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that with only 4 data points the reliability of such an analysis is questionable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, I have stock A and then look at the next two months. &lt;/P&gt;&lt;P&gt;Let's assume the probability of increase is 50/50. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I see it increase it the next 20 months the odds of that occurring was 0.5*0.5 = 1/4&lt;/P&gt;&lt;P&gt;If I see it decrease the odds were 1/4&lt;/P&gt;&lt;P&gt;To see it decrease one month/increase another month the odds are 50%.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the odds are so high its hard to conclude anything from the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that explains why you shouldn't do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how you'd actually do it, because that's the actual question. This will give you the differences from months to month. &lt;/P&gt;&lt;P&gt;Then you need to decide what's a significant difference. Is it 1, if it changes from 5 to 4? Is it still 1 if it changes from 100 to 99?&amp;nbsp; Perhaps you should look at percent difference from month to month instead? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're testing a particular scheme implementation as initially requested you hopefully have a control group. This would mean some companies were exposed to the scheme and others not so you can try and tease out the actual effect. Then perhaps you want to group the categories together in some manner to see if the change is consistent across industries, i.e. if you can group companies by subject area such as: entertainment, health care or even products, experiences.&amp;nbsp; That might give you a way to find outliers, companies that don't perform the same as others in a group or groups that are affected by the scheme and others that aren't. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps you get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;array mths(4) Jan Feb Mar Apr;&lt;/P&gt;&lt;P&gt;array diff(3) Chg_feb chg_mar chg_apr;&lt;/P&gt;&lt;P&gt;do i=1 to 3;&lt;/P&gt;&lt;P&gt;diff(i)=mths(i+1)-mths(i);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 05:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143409#M28704</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-10T05:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Please suggest logic for the scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143410#M28705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for detailed explanation. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 18:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-Please-suggest-logic-for-the-scenario/m-p/143410#M28705</guid>
      <dc:creator>kumarK</dc:creator>
      <dc:date>2014-12-10T18:05:20Z</dc:date>
    </item>
  </channel>
</rss>

