<?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 Proc REPORT: How to determine the ratio for each observation ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-REPORT-How-to-determine-the-ratio-for-each-observation/m-p/346418#M79893</link>
    <description>&lt;P&gt;please look at the program in following, i want to do ratio for each observation but when I run the program I found it only give me one ratio for the invoice / msrp, (ratio = invoice.mean/ msrp.mean;) and if i use (ratio = invoice/ msrp); it's error "invoice and msrp not initialized !' someone can help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc report data=sashelp.cars;&lt;BR /&gt;columns make invoice msrp ratio;&lt;BR /&gt;define make / display "MAKE" width=10;&lt;BR /&gt;define invoice / analysis mean "Invoice" format=8.1;;&lt;BR /&gt;define msrp / analysis mean "MSRP" format=8.1;&lt;BR /&gt;define ratio / computed format=8.1;&lt;BR /&gt;compute ratio;&lt;BR /&gt;ratio = invoice.mean/ msrp.mean;&lt;BR /&gt;endcomp;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Apr 2017 03:13:15 GMT</pubDate>
    <dc:creator>emoryustc</dc:creator>
    <dc:date>2017-04-02T03:13:15Z</dc:date>
    <item>
      <title>Proc REPORT: How to determine the ratio for each observation ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-REPORT-How-to-determine-the-ratio-for-each-observation/m-p/346418#M79893</link>
      <description>&lt;P&gt;please look at the program in following, i want to do ratio for each observation but when I run the program I found it only give me one ratio for the invoice / msrp, (ratio = invoice.mean/ msrp.mean;) and if i use (ratio = invoice/ msrp); it's error "invoice and msrp not initialized !' someone can help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc report data=sashelp.cars;&lt;BR /&gt;columns make invoice msrp ratio;&lt;BR /&gt;define make / display "MAKE" width=10;&lt;BR /&gt;define invoice / analysis mean "Invoice" format=8.1;;&lt;BR /&gt;define msrp / analysis mean "MSRP" format=8.1;&lt;BR /&gt;define ratio / computed format=8.1;&lt;BR /&gt;compute ratio;&lt;BR /&gt;ratio = invoice.mean/ msrp.mean;&lt;BR /&gt;endcomp;&lt;BR /&gt;rbreak after / summarize dol dul;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 03:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-REPORT-How-to-determine-the-ratio-for-each-observation/m-p/346418#M79893</guid>
      <dc:creator>emoryustc</dc:creator>
      <dc:date>2017-04-02T03:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the ratio for each observation ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-REPORT-How-to-determine-the-ratio-for-each-observation/m-p/346455#M79905</link>
      <description>&lt;P&gt;But if you change the format for ratio to, say, 8.5, you'll see that they aren't the same. Isn't that what you want?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 00:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-REPORT-How-to-determine-the-ratio-for-each-observation/m-p/346455#M79905</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-04-02T00:40:11Z</dc:date>
    </item>
  </channel>
</rss>

