<?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 ERROR: (execution) Matrix has not been set to a value. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695465#M212231</link>
    <description>&lt;P&gt;Good day&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this error and don't know how to fix it. Help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;print 'Question 1';&lt;BR /&gt;call randseed(123);&lt;BR /&gt;alpha=6;&lt;BR /&gt;nvec={250};&lt;BR /&gt;num_sim=10000;&lt;/P&gt;&lt;P&gt;free keep1;&lt;BR /&gt;do i=1 to nrow(nvec);&lt;BR /&gt;n=nvec[i,];&lt;BR /&gt;do j=1 to num_sim;&lt;BR /&gt;u=randfun(n,'uniform',alpha);&lt;BR /&gt;x=4/((1-u)**(1/alpha));&lt;BR /&gt;T=mean(x)*(1/(mean(x)-4));&lt;BR /&gt;keep1=keep1//(n||T);&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;free keep2;&lt;BR /&gt;do k=1 to nrow(keep1) by num_sim;&lt;BR /&gt;e_T=mean(keep1[k:k+(num_sim-1),2]);&lt;BR /&gt;bias_T=e_T-a;&lt;BR /&gt;var_T=var(keep1[k:k+(num_sim-1),2]);&lt;BR /&gt;mse_T=var_T-bias_T##2;&lt;/P&gt;&lt;P&gt;keep2=keep2//(e_T||bias_T||var_T||mse_T);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;free results;&lt;BR /&gt;results=nvec||keep2;&lt;BR /&gt;colnames_keep3='n'||'E[T]'||'Var[T]'||'Bias[T]'||'mse[T]';&lt;BR /&gt;print results[colname=colnames_keep3];&lt;/P&gt;&lt;P&gt;quit;&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, 30 Oct 2020 13:56:48 GMT</pubDate>
    <dc:creator>Hen07</dc:creator>
    <dc:date>2020-10-30T13:56:48Z</dc:date>
    <item>
      <title>ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695465#M212231</link>
      <description>&lt;P&gt;Good day&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this error and don't know how to fix it. Help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;print 'Question 1';&lt;BR /&gt;call randseed(123);&lt;BR /&gt;alpha=6;&lt;BR /&gt;nvec={250};&lt;BR /&gt;num_sim=10000;&lt;/P&gt;&lt;P&gt;free keep1;&lt;BR /&gt;do i=1 to nrow(nvec);&lt;BR /&gt;n=nvec[i,];&lt;BR /&gt;do j=1 to num_sim;&lt;BR /&gt;u=randfun(n,'uniform',alpha);&lt;BR /&gt;x=4/((1-u)**(1/alpha));&lt;BR /&gt;T=mean(x)*(1/(mean(x)-4));&lt;BR /&gt;keep1=keep1//(n||T);&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;free keep2;&lt;BR /&gt;do k=1 to nrow(keep1) by num_sim;&lt;BR /&gt;e_T=mean(keep1[k:k+(num_sim-1),2]);&lt;BR /&gt;bias_T=e_T-a;&lt;BR /&gt;var_T=var(keep1[k:k+(num_sim-1),2]);&lt;BR /&gt;mse_T=var_T-bias_T##2;&lt;/P&gt;&lt;P&gt;keep2=keep2//(e_T||bias_T||var_T||mse_T);&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;free results;&lt;BR /&gt;results=nvec||keep2;&lt;BR /&gt;colnames_keep3='n'||'E[T]'||'Var[T]'||'Bias[T]'||'mse[T]';&lt;BR /&gt;print results[colname=colnames_keep3];&lt;/P&gt;&lt;P&gt;quit;&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, 30 Oct 2020 13:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695465#M212231</guid>
      <dc:creator>Hen07</dc:creator>
      <dc:date>2020-10-30T13:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695466#M212232</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt;Show us the log. Include the entire PROC IML portion code and NOTES, WARNINGS and ERRORs. Do not chop anything out of the log from the PROC IML segment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt;When providing the log, it is critical that you maintain the formatting of the log so we can see it exactly as SAS showed it to you, making it easier for us to use. To maintain the formatting of the log, click on the &amp;lt;/&amp;gt; icon and paste the log as text into the window that appears. DO NOT SKIP THIS STEP.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 14:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695466#M212232</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-30T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Matrix has not been set to a value.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695467#M212233</link>
      <description>Sorry about that&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 proc iml;&lt;BR /&gt;NOTE: IML Ready&lt;BR /&gt;74&lt;BR /&gt;75 print 'Question 1';&lt;BR /&gt;76 call randseed(123);&lt;BR /&gt;77 aplha=5;&lt;BR /&gt;78 nvec={250};&lt;BR /&gt;79 num_sim=10000;&lt;BR /&gt;80&lt;BR /&gt;81 free keep1;&lt;BR /&gt;82 do i=1 to nrow(nvec);&lt;BR /&gt;83 n=nvec[i,];&lt;BR /&gt;84&lt;BR /&gt;84 ! do j=1 to num_sim;&lt;BR /&gt;85&lt;BR /&gt;85 ! u=randfun(n,'uniform',0,1);&lt;BR /&gt;86&lt;BR /&gt;86 ! x=4/((1-u)**(1/alpha));&lt;BR /&gt;87&lt;BR /&gt;87 ! mme=(mean(x)/(mean(x)-4));&lt;BR /&gt;88&lt;BR /&gt;88 ! keep1=keep1//(n||num_sim||mme);&lt;BR /&gt;89&lt;BR /&gt;89 ! end;&lt;BR /&gt;90 end;&lt;BR /&gt;NOTE: Module RANDFUN loaded from the storage SASHELP.IMLMLIB.&lt;BR /&gt;ERROR: (execution) Matrix has not been set to a value.&lt;BR /&gt;operation : / at line 86 column 16&lt;BR /&gt;operands : *LIT1013, alpha&lt;BR /&gt;*LIT1013 1 row 1 col (numeric)&lt;BR /&gt;1&lt;BR /&gt;alpha 0 row 0 col (type ?, size 0)&lt;BR /&gt;statement : ASSIGN at line 86 column 2&lt;BR /&gt;91&lt;BR /&gt;92 free keep2;&lt;BR /&gt;93 do k=1 to nrow(keep1) by num_sim;&lt;BR /&gt;94 e_mme=mean(keep1[k:k+(num_sim-1),3]);&lt;BR /&gt;95 bias_mme=e_mme-aplha;&lt;BR /&gt;96 var_mme=var(keep1[k:k+(num_sim-1),3]);&lt;BR /&gt;97 mse_mme=var_mme-bias_mme##2;&lt;BR /&gt;98 keep2=keep2//(e_mme||bias_mme||var_mme||mse_mme);&lt;BR /&gt;99 end;&lt;BR /&gt;100&lt;BR /&gt;101 free results;&lt;BR /&gt;102 results=nvec||keep2;&lt;BR /&gt;103 colnames_keep3='n'||'E[mme]'||'Bias[mme]'||'var[mme]'||'mse[mme]';&lt;BR /&gt;104 print results[colname=colnames_keep3];&lt;BR /&gt;105 quit;&lt;BR /&gt;NOTE: Exiting IML.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IML used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;user cpu time 0.03 seconds&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;memory 2067.96k&lt;BR /&gt;OS Memory 30884.00k&lt;BR /&gt;Timestamp 10/30/2020 02:05:44 PM&lt;BR /&gt;Step Count 24 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 1068&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 0&lt;BR /&gt;Involuntary Context Switches 0&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;BR /&gt;106&lt;BR /&gt;107&lt;BR /&gt;108 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;120&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Oct 2020 14:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-execution-Matrix-has-not-been-set-to-a-value/m-p/695467#M212233</guid>
      <dc:creator>Hen07</dc:creator>
      <dc:date>2020-10-30T14:07:35Z</dc:date>
    </item>
  </channel>
</rss>

