<?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: Error:ERROR: Matrix bw has not been set to a value. in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111636#M863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use these data to check your syntax. It runs without error for me on SAS 9.3:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data A;&lt;BR /&gt;call streaminit(1);&lt;BR /&gt;do i = 1 to 12;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; y = ceil(5*rand("uniform"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; x = ceil(5*rand("uniform"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; m = ceil(5*rand("uniform"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%sobel(data=work.A, y=y, x=x, m=m, boot=20)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 10:14:03 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2013-04-18T10:14:03Z</dc:date>
    <item>
      <title>Error:ERROR: Matrix bw has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111634#M861</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;I am new in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I am doing Preacher &amp;amp; Hayes's sobel macro using SAS, I got error message. Please see below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement : IF at line 182 column 1&lt;/P&gt;&lt;P&gt;ERROR: Matrix bw has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : PRINT at line 182 column 1&lt;/P&gt;&lt;P&gt;ERROR: Matrix op has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : PRINT at line 182 column 1&lt;/P&gt;&lt;P&gt;ERROR: Matrix r2med has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I executed the command set called called %sobel, with syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%sobel(data=file, y dv, x=iv, m med, boot=z);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I added this syntax at the end of matrix provided by Precher's &amp;amp; Hayes...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For example, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%mend sobel; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sobel&amp;nbsp; (data=2011.sav, y=BDI, x=WORRY, m=DAILYCOMPGAME, boot=5000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 00:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111634#M861</guid>
      <dc:creator>demian</dc:creator>
      <dc:date>2013-04-18T00:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error:ERROR: Matrix bw has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111635#M862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a small sample data set that we can run?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 09:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111635#M862</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-18T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error:ERROR: Matrix bw has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111636#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use these data to check your syntax. It runs without error for me on SAS 9.3:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data A;&lt;BR /&gt;call streaminit(1);&lt;BR /&gt;do i = 1 to 12;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; y = ceil(5*rand("uniform"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; x = ceil(5*rand("uniform"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; m = ceil(5*rand("uniform"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%sobel(data=work.A, y=y, x=x, m=m, boot=20)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 10:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111636#M863</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-18T10:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error:ERROR: Matrix bw has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111637#M864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! Sort it out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 02:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111637#M864</guid>
      <dc:creator>demian</dc:creator>
      <dc:date>2013-04-19T02:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error:ERROR: Matrix bw has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111638#M865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And welcome to SAS, by the way. These SAS Communities are a great resource, so I'm glad you've discovered them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 19:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-ERROR-Matrix-bw-has-not-been-set-to-a-value/m-p/111638#M865</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-19T19:22:40Z</dc:date>
    </item>
  </channel>
</rss>

