<?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 Re: help with sas data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803947#M33375</link>
    <description>&lt;P&gt;how do you get tenure?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 00:38:33 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2022-03-25T00:38:33Z</dc:date>
    <item>
      <title>help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803933#M33368</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Mini – Project of Advanced SAS Course&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Part One: Small Project for the Telecom company&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer Distribution and Deactivation Analyses&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The attached data is the CRM data of a wireless company for 2 years. The wireless company would like to investigate the customer distribution and business behaviors, and then gain insightful understanding about the customers, and to forecast the deactivation&lt;/P&gt;&lt;P&gt;trends for the next 6 months.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Acctno: account number.&lt;/P&gt;&lt;P&gt;Actdt: account activation date&lt;/P&gt;&lt;P&gt;Deactdt: account deactivation date&lt;/P&gt;&lt;P&gt;DeactReason: reason for deactivation.&lt;/P&gt;&lt;P&gt;GoodCredit: customer’s credit is good or not.&lt;/P&gt;&lt;P&gt;RatePlan: rate plan for the customer.&lt;/P&gt;&lt;P&gt;DealerType: dealer type.&lt;/P&gt;&lt;P&gt;Age: customer age.&lt;/P&gt;&lt;P&gt;Province: province.&lt;/P&gt;&lt;P&gt;Sales: the amount of sales to a customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Analysis requests:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.1 &lt;/STRONG&gt;&amp;nbsp;Explore and describe the dataset briefly. For example, is the acctno unique? What&lt;/P&gt;&lt;P&gt;is the number of accounts activated and deactivated? When is the earliest and&lt;/P&gt;&lt;P&gt;latest activation/deactivation dates available? And so on….&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.2 &lt;/STRONG&gt;&amp;nbsp;What is the age and province distributions of active and deactivated customers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;FONT color="#0000FF"&gt;*1.3&lt;/FONT&gt; Segment the customers based on age, province and sales amount:            ;
************************************************************************************;
PROC FORMAT;
VALUE AG
    0-&amp;lt;20='YOUNG'
	20-&amp;lt;40='ADULT'
	40-&amp;lt;60='MATURE'
	60-high='Senior'	
;
VALUE sal
   0-&amp;lt;100='FAIR'
   100-500='NORMAL'
   501-800='GOOD'
   801-high='EXCELENT'
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sales segment: &amp;lt; $100, $100---500, $500-$800, $800 and above.&lt;/P&gt;&lt;P&gt;Age segments: &amp;lt; 20, 21-40, 41-60, 60 and above.&lt;/P&gt;&lt;P&gt;Create an analysis report by using the attached Excel template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.4.&lt;/STRONG&gt;Statistical Analysis:&lt;/P&gt;&lt;P&gt;1) Calculate the tenure in days for each account and give simple statistics.&lt;/P&gt;&lt;P&gt;2) Calculate the number of accounts deactivated for each month.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;3) &lt;/FONT&gt;Segment the account, first by account status “Active” and “Deactivated”, then by&lt;/P&gt;&lt;P&gt;Tenure: &amp;lt; 30 days, 31---60 days, 61 days--- one year, over one year. Report the number of accounts of percent of all for each segment.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;4)&lt;/FONT&gt; Test the general association between the tenure segments and “Good Credit”&lt;/P&gt;&lt;P&gt;“RatePlan ” and “DealerType.”&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;5)&lt;/FONT&gt; Is there any association between the account status and the tenure segments?&lt;/P&gt;&lt;P&gt;Could you find out a better tenure segmentation strategy that is more associated&lt;/P&gt;&lt;P&gt;with the account status?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;6)&lt;/FONT&gt; Does Sales amount differ among different account statuses, good credit, and&lt;/P&gt;&lt;P&gt;customer age segments?&lt;/P&gt;&lt;P&gt;hello i would really appreciate help with the code fore the questions in blue, ive been trying for days and cant figure it out, thanks for your time&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EKBALAM_0-1648165830479.png" style="width: 719px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69763i75B4D9398D0C23D8/image-dimensions/719x335?v=v2" width="719" height="335" role="button" title="EKBALAM_0-1648165830479.png" alt="EKBALAM_0-1648165830479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 23:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803933#M33368</guid>
      <dc:creator>EK-BALAM</dc:creator>
      <dc:date>2022-03-24T23:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803936#M33370</link>
      <description>&lt;P&gt;was there a question here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 00:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803936#M33370</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-03-25T00:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803937#M33371</link>
      <description>&lt;P&gt;how are you defining active and deactivated? it looks like you will have to do if deactdt =. then status='Active'; else status='Deactivated';&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 00:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803937#M33371</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-03-25T00:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803938#M33372</link>
      <description>I would like help with the answers to the questions highlighted</description>
      <pubDate>Fri, 25 Mar 2022 00:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803938#M33372</guid>
      <dc:creator>EK-BALAM</dc:creator>
      <dc:date>2022-03-25T00:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803944#M33374</link>
      <description>what's the question for this answer?&lt;BR /&gt;&lt;BR /&gt;thanks for your time with the questions in blue&lt;BR /&gt;&lt;BR /&gt;3) Segment the account, first by account status “Active” and “Deactivated”, then by&lt;BR /&gt;&lt;BR /&gt;Tenure: &amp;lt; 30 days, 31---60 days, 61 days--- one year, over one year. Report the number of accounts of percent of all for each segment.&lt;BR /&gt;&lt;BR /&gt;4) Test the general association between the tenure segments and “Good Credit”&lt;BR /&gt;&lt;BR /&gt;“RatePlan ” and “DealerType.”&lt;BR /&gt;&lt;BR /&gt;5) Is there any association between the account status and the tenure segments?&lt;BR /&gt;&lt;BR /&gt;Could you find out a better tenure segmentation strategy that is more associated&lt;BR /&gt;&lt;BR /&gt;with the account status?&lt;BR /&gt;&lt;BR /&gt;6) Does Sales amount differ among different account statuses, good credit, and&lt;BR /&gt;&lt;BR /&gt;customer age segments?&lt;BR /&gt;&lt;BR /&gt;hello i would really appreciate help with the code fore the questions in blue, ive been trying for days and cant figure it out, thanks for your time</description>
      <pubDate>Fri, 25 Mar 2022 00:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803944#M33374</guid>
      <dc:creator>EK-BALAM</dc:creator>
      <dc:date>2022-03-25T00:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803947#M33375</link>
      <description>&lt;P&gt;how do you get tenure?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 00:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803947#M33375</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-03-25T00:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803948#M33376</link>
      <description>I don't know, I assume from deactivation date, but i dont know how to do the code for segmentation</description>
      <pubDate>Fri, 25 Mar 2022 00:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/803948#M33376</guid>
      <dc:creator>EK-BALAM</dc:creator>
      <dc:date>2022-03-25T00:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804030#M33395</link>
      <description>&lt;P&gt;ok I think you can do if nmiss(deactdt, actdt) = 0 then tenure = deactdt-actdt. then use the ranges they gave you to calculate tenure. you can do it in proc format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; &amp;lt; 30 days, 31---60 days, 61 days--- one year, over one year. Report the number of accounts of percent of all for each segment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value tenfmt
0-&amp;lt;31='&amp;lt; 30 days'
31-&amp;lt;61='31-60 days'
61-&amp;lt;366='61 days - one year'
366-HIGH='Over 1 year'
;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;then in a data step do tenure_seg =put(tenure, tenfmt.);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 10:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804030#M33395</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-03-25T10:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804043#M33397</link>
      <description>thanks allot for your time, much appreciated</description>
      <pubDate>Fri, 25 Mar 2022 13:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804043#M33397</guid>
      <dc:creator>EK-BALAM</dc:creator>
      <dc:date>2022-03-25T13:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804048#M33398</link>
      <description>&lt;P&gt;hello you have any idea how to do this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;4) Test the general association between the tenure segments and “Good Credit”&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;“RatePlan ” and “DealerType.”&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;5) Is there any association between the account status and the tenure segments?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;Could you find out a better tenure segmentation strategy that is more associated&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;with the account status?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;6) Does Sales amount differ among different account statuses, good credit, and&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;customer age segments?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;from the same dataset&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804048#M33398</guid>
      <dc:creator>EK-BALAM</dc:creator>
      <dc:date>2022-03-25T13:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804123#M33399</link>
      <description>&lt;P&gt;not too familiar with customer segmentation but maybe proc glm if the assumptions are met.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 15:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/804123#M33399</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-03-25T15:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/871284#M38587</link>
      <description>&lt;P&gt;Hi there: I think I have the same project and the same data file as you, I have a problem to read the source file into sas like you post the file. can you send me the code to read the file into sas.&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 03:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/871284#M38587</guid>
      <dc:creator>V168</dc:creator>
      <dc:date>2023-04-22T03:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with sas data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/871285#M38588</link>
      <description>&lt;P&gt;Hi there:&lt;/P&gt;&lt;P&gt;I think I have the same project as you and the same data set, I have a problem reading the sata set into the sas table, can you send me the code to read the source data set to sas table. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 03:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-with-sas-data-set/m-p/871285#M38588</guid>
      <dc:creator>V168</dc:creator>
      <dc:date>2023-04-22T03:20:49Z</dc:date>
    </item>
  </channel>
</rss>

