<?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 Product sum function OR similar in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Product-sum-function-OR-similar/m-p/40728#M8333</link>
    <description>Two questions:&lt;BR /&gt;
&lt;BR /&gt;
1. When calculating the probability values from the system of equations(parameter estimates/variable values) for a categorical model, I am seeing code that includes Y=B1+(Var1='xxx' * B2)+..., for example. How does SAS interpret that...meaning what does it do with Var1='xxx', evaluate it to 0 or1? I'd like to modify the code to dynamically(and therefore generically) calculate the Y value without explicit reference to each Var value. I was thinking about an array of variables/values and the parameter estimate array. Is that the most efficient option for large datasets?&lt;BR /&gt;
&lt;BR /&gt;
2. The first question is somewhat contingent on the answer to this one...is it possible to create a sum of products when arrays are involved without employing IML or is that in fact what I should use...is it efficient for a large dataset. &lt;BR /&gt;
Probabilities will then be used for forecasting.&lt;BR /&gt;
&lt;BR /&gt;
Any assistance appreciated.</description>
    <pubDate>Wed, 03 Jun 2009 16:31:21 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-03T16:31:21Z</dc:date>
    <item>
      <title>Product sum function OR similar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Product-sum-function-OR-similar/m-p/40728#M8333</link>
      <description>Two questions:&lt;BR /&gt;
&lt;BR /&gt;
1. When calculating the probability values from the system of equations(parameter estimates/variable values) for a categorical model, I am seeing code that includes Y=B1+(Var1='xxx' * B2)+..., for example. How does SAS interpret that...meaning what does it do with Var1='xxx', evaluate it to 0 or1? I'd like to modify the code to dynamically(and therefore generically) calculate the Y value without explicit reference to each Var value. I was thinking about an array of variables/values and the parameter estimate array. Is that the most efficient option for large datasets?&lt;BR /&gt;
&lt;BR /&gt;
2. The first question is somewhat contingent on the answer to this one...is it possible to create a sum of products when arrays are involved without employing IML or is that in fact what I should use...is it efficient for a large dataset. &lt;BR /&gt;
Probabilities will then be used for forecasting.&lt;BR /&gt;
&lt;BR /&gt;
Any assistance appreciated.</description>
      <pubDate>Wed, 03 Jun 2009 16:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Product-sum-function-OR-similar/m-p/40728#M8333</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-03T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Product sum function OR similar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Product-sum-function-OR-similar/m-p/40729#M8334</link>
      <description>&amp;gt;evaluate it to 0 or1?&lt;BR /&gt;
Correct. This is a boolean.&lt;BR /&gt;
&lt;BR /&gt;
1-How about[pre]&lt;BR /&gt;
do i=1 to 20;&lt;BR /&gt;
Y=B1+(Var{i}='xxx' * B2)+..., &lt;BR /&gt;
end;[/pre]&lt;BR /&gt;
&lt;BR /&gt;
2-&lt;BR /&gt;
&amp;gt;is it possible to create a sum of products when arrays are involved without employing IML &lt;BR /&gt;
Yes it is. Your question is too vague.</description>
      <pubDate>Thu, 04 Jun 2009 03:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Product-sum-function-OR-similar/m-p/40729#M8334</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-04T03:29:29Z</dc:date>
    </item>
  </channel>
</rss>

