<?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: How to create an index of the funded share to population share in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438074#M109194</link>
    <description>&lt;P&gt;PROC SUMMARY is something that you will use every week.&amp;nbsp; You need to learn it.&amp;nbsp; Here's a link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0aq3hsvflztfzn1xa2wt6s35oy6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0aq3hsvflztfzn1xa2wt6s35oy6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2018 21:07:24 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-02-16T21:07:24Z</dc:date>
    <item>
      <title>How to create an index of the funded share to population share</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/437957#M109151</link>
      <description>&lt;DIV class="question_text user_content enhanced"&gt;&lt;P&gt;How to create an index of the funded share to population share&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;a. How do I create a variable&amp;nbsp;for the ratio of each state’s population to total US population. Consider the variable name "Popshare".&lt;/P&gt;&lt;P&gt;b.&amp;nbsp;How do I create a variable that has the ratio of total funded-amnt by state divided by total funded_amnt across all observations.&amp;nbsp;&lt;SPAN&gt;Consider the variable name "Loanshare"&lt;/SPAN&gt;&lt;BR /&gt;c.&amp;nbsp;How do I put both of these share variables by state in one dataset, and divide loanshare by popshare.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By Using above&amp;nbsp; datasets I wanted to find following&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How many states have ratios of &amp;gt; 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN&gt;Which state has the highest ratio&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="answers"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="answers"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="answers"&gt;Regards,&lt;/DIV&gt;&lt;DIV class="answers"&gt;Roshan Malewar&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Feb 2018 13:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/437957#M109151</guid>
      <dc:creator>Malewar</dc:creator>
      <dc:date>2018-02-16T13:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index of the funded share to population share</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/437965#M109155</link>
      <description>&lt;P&gt;Do you have some data to work with? If so post it to get a code answer&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 13:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/437965#M109155</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-16T13:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index of the funded share to population share</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/437978#M109157</link>
      <description>&lt;P&gt;Here's an approach to create the pieces you will need.&amp;nbsp; Presumably you can take care of the data manipulation steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc summary data=have;&lt;/P&gt;
&lt;P&gt;class state;&lt;/P&gt;
&lt;P&gt;var population funded_amt;&lt;/P&gt;
&lt;P&gt;output out=stats (drop=_freq_) sum=state_population state_funded_amt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data next_step;&lt;/P&gt;
&lt;P&gt;if _n_=1 then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;set stats (where=(_type_=0) rename=(state_population=total_population state_funded_amt=total_funded_amt));&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;set stats (where=(_type_=1));&lt;/P&gt;
&lt;P&gt;drop _type_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 14:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/437978#M109157</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-16T14:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index of the funded share to population share</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438044#M109180</link>
      <description>No actually I don't have any data on my local machine. Apologies for the inconvenience.</description>
      <pubDate>Fri, 16 Feb 2018 18:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438044#M109180</guid>
      <dc:creator>Malewar</dc:creator>
      <dc:date>2018-02-16T18:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index of the funded share to population share</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438048#M109181</link>
      <description>&lt;P&gt;Actually I'm not able to understand the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data=have;&lt;/P&gt;&lt;P&gt;class state;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------------&amp;gt; Why We use this&lt;/P&gt;&lt;P&gt;var population funded_amt;&amp;nbsp; &amp;nbsp; ------------&amp;gt; Do we need to create new variable named Population(Getting error that variable Population Not Found)&lt;/P&gt;&lt;P&gt;output out=stats (drop=_freq_) sum=state_population state_funded_amt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---------&amp;gt; This is difficult for me to understand&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to this I'm not able to move further. Please do the needful. Waiting for your replay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 19:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438048#M109181</guid>
      <dc:creator>Malewar</dc:creator>
      <dc:date>2018-02-16T19:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an index of the funded share to population share</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438074#M109194</link>
      <description>&lt;P&gt;PROC SUMMARY is something that you will use every week.&amp;nbsp; You need to learn it.&amp;nbsp; Here's a link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0aq3hsvflztfzn1xa2wt6s35oy6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0aq3hsvflztfzn1xa2wt6s35oy6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 21:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-index-of-the-funded-share-to-population-share/m-p/438074#M109194</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-16T21:07:24Z</dc:date>
    </item>
  </channel>
</rss>

