<?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; (execution) invalid operand to operation in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/516543#M4439</link>
    <description>&lt;P&gt;If you dont mine to answer, where should I define them.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 01:51:29 GMT</pubDate>
    <dc:creator>NURAO</dc:creator>
    <dc:date>2018-11-28T01:51:29Z</dc:date>
    <item>
      <title>error; (execution) invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/501529#M4386</link>
      <description>&lt;P&gt;PROC IML;&lt;BR /&gt;RESET NONAME;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;START BP(A, LOWFEN, UPPFEN, LEFT, TRIMEAN) GLOBAL (NY,NTOT,WOBS,BOBS);&lt;BR /&gt;NTOT = NROW(A);&lt;BR /&gt;WOBS = NCOL(A);&lt;BR /&gt;BOBS = NCOL(NY);&lt;BR /&gt;YT = J(NTOT, WOBS, 0);&lt;BR /&gt;DOQ1 = J(1, NCOL(NY),0);&lt;BR /&gt;IDOQ1 = DOQ1;&lt;BR /&gt;DECIMAL = DOQ1;&lt;BR /&gt;Q1DIFF = DOQ1;&lt;BR /&gt;Q1DEC = DOQ1;&lt;BR /&gt;Q1 = J(1, NCOL(NY),0);&lt;BR /&gt;DOQ3 = DOQ1;&lt;BR /&gt;IDOQ3 = DOQ1;&lt;BR /&gt;DECIMAL3 = DOQ1;&lt;BR /&gt;Q3DIFF = DOQ1;&lt;BR /&gt;Q3DEC = DOQ1;&lt;BR /&gt;Q3 = Q1;&lt;B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AD");&lt;BR /&gt;MADN[,I]=MAD(TEMP1,"NMAD");&lt;BR /&gt;LOWFEN[,I]=Q1[,I]-(1.44*MADN[,I]);&lt;BR /&gt;UPPFEN[,I]=Q3[,I]+(1.44*MADN[,I]);&lt;BR /&gt;LEFT=TEMP1[LOC(LOWFEN[,I]&amp;lt;TEMP1 &amp;amp; TEMP1&amp;lt;UPPFEN[,I])];&lt;BR /&gt;NEWN=NROW (LEFT);&lt;BR /&gt;HA=NEWN;&lt;BR /&gt;TRIMEAN[,I]=SUM(LEFT)/HA;&lt;BR /&gt;SS=VAR(LEFT);&lt;BR /&gt;SM=STD(LEFT);&lt;BR /&gt;SEM=SM;&lt;BR /&gt;&lt;BR /&gt;NAMES={'GROUP1' 'GROUP2' 'GROUP3'};&lt;BR /&gt;M=L;&lt;BR /&gt;F=F + NY[I];&lt;BR /&gt;*PRINT LEFT;&lt;BR /&gt;*PRINT "SORT DATA" YT;&lt;BR /&gt;*PRINT YT;&lt;/P&gt;&lt;P&gt;END;&lt;BR /&gt;*PRINT "ORI DATA" A;&lt;BR /&gt;*PRINT "DEPTH OF Q3" DOQ3;&lt;BR /&gt;*PRINT IDOQ3;&lt;BR /&gt;*PRINT DECIMAL3;&lt;BR /&gt;*PRINT Q3DIFF;&lt;BR /&gt;*PRINT "DEC Q3" Q3DEC;&lt;BR /&gt;*PRINT "Q3=" Q3;&lt;BR /&gt;*PRINT "RMAD" RMAD;&lt;BR /&gt;*PRINT MADN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*PRINT "QUARTILE=" Q;&lt;BR /&gt;*PRINT "Q1=" Q1;&lt;BR /&gt;*PRINT "LOWER FENCE" LOWFEN;&lt;BR /&gt;*PRINT "BOXPLOT TRIMMEAN = " TRIMEAN;&lt;BR /&gt;*PRINT TRIMEAN[COLNAME=NAMES];&lt;BR /&gt;*PRINT NY[COLNAME=NAMES];&lt;BR /&gt;*PRINT YT;&lt;BR /&gt;FINISH;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;***MENJANA SAMPEL BUTSTRAP UNTUK PENGIRAAN RALAT PIAWAI PENGANGGAR&lt;BR /&gt;MOM **;&lt;BR /&gt;START BOOTDAT(A, TRIMEAN, YB) GLOBAL(NY, NTOT, WOBS, BOBS, SEED);&lt;/P&gt;&lt;P&gt;F = 1;&lt;BR /&gt;M = 0;&lt;BR /&gt;DO J = 1 TO BOBS;&lt;BR /&gt;L = M+NY[J];&lt;BR /&gt;TEMP = A[F:L,];&lt;BR /&gt;BVAL = TEMP;&lt;BR /&gt;DO P = 1 TO NROW(TEMP);&lt;BR /&gt;RVAL = UNIFORM(SEED);&lt;BR /&gt;BVAL[P,] = TEMP[CEIL(NROW(TEMP)#RVAL),];&lt;BR /&gt;END; **DO P**;&lt;BR /&gt;IF J = 1 THEN YB = BVAL;&lt;BR /&gt;ELSE YB = YB//BVAL;&lt;BR /&gt;M = L;&lt;BR /&gt;F = F + NY[J];&lt;BR /&gt;END; **DO J**;&lt;/P&gt;&lt;P&gt;***** PEMUSATAN DATA BUTSTRAP *****************;&lt;BR /&gt;F = 1;&lt;BR /&gt;M = 0;&lt;BR /&gt;DO I = 1 TO BOBS;&lt;BR /&gt;L = M + NY[I];&lt;BR /&gt;MVAL = TRIMEAN[,I];&lt;BR /&gt;DO K = F TO L BY 1;&lt;BR /&gt;YB[K,] = YB[K,] - MVAL;&lt;BR /&gt;END; **DO K**;&lt;BR /&gt;M = L;&lt;BR /&gt;F = F + NY[I];&lt;BR /&gt;END; ** DO I**;&lt;BR /&gt;FINISH;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;START BOOTSTAT(YB, TRIMEANB) GLOBAL (NY, NTOT, WOBS, BOBS, SEED);&lt;BR /&gt;CALL BP(AB, LOWFENB, UPPFENB, LEFTB, TRIMEANB);&lt;BR /&gt;FINISH;&lt;/P&gt;&lt;P&gt;************* PENGIRAAN RALAT PIAWAI ********************;&lt;BR /&gt;START SEBOXPLOT;&lt;BR /&gt;CALL BP(A, LOWFEN, UPPFEN, LEFT, TRIMEAN);&lt;BR /&gt;F = 1;&lt;BR /&gt;M = 0;&lt;BR /&gt;DO BOOTLOOP = 1 TO NUMSIM;&lt;BR /&gt;CALL BOOTDAT(A, TRIMEAN, YB);&lt;BR /&gt;CALL BOOTSTAT(YB, TRIMEANB);&lt;BR /&gt;IF BOOTLOOP = 1 THEN TMEANB = TRIMEANB;&lt;BR /&gt;ELSE TMEANB = TMEANB//TRIMEANB;&lt;BR /&gt;END; **DO BOOTLOOP**;&lt;/P&gt;&lt;P&gt;VAR=J(1, BOBS, 0);&lt;BR /&gt;SE=J(1,BOBS,0);&lt;BR /&gt;DO I=1 TO BOBS;&lt;BR /&gt;VAR[,I]=(SSQ(TMEANB[,I])-(SUM(TMEANB[,I])**2/NUMSIM))/(NUMSIM-1);&lt;BR /&gt;SE[,I]=SQRT(VAR[,I]);&lt;/P&gt;&lt;P&gt;END;&lt;/P&gt;&lt;P&gt;PRINT "BOOTSTRAP STANDARD ERROR=" SE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FINISH;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;**BILANGAN SAMPEL BUTSTRAP**;&lt;BR /&gt;NUMSIM = 50;&lt;BR /&gt;**SEED UTK BUTSTRAP**;&lt;BR /&gt;SEED = 40389;&lt;/P&gt;&lt;P&gt;********cubaan menggunakan data yg dijana*******;&lt;/P&gt;&lt;P&gt;NY = {11 11 11};&lt;/P&gt;&lt;P&gt;A = {5,8,7,3,9,4,3,29,5,6,7,&lt;BR /&gt;3,2,6,4,14,4,7,6,9,3,4,&lt;BR /&gt;9,9,8,7,10,11,27,12,15,17,16};&lt;/P&gt;&lt;P&gt;RUN SEBOXPLOT;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;*CALL BP(A, LOWFEN, UPPFEN, LEFT, TRIMEAN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently unable figure out what went wrong with code 'YT'. When I run the program, it stated that 'YT' was invalid operand to operation. Because of that I stuck to get 'BOOTSTRAP STANDARD ERROR'. Any help would greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 15:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/501529#M4386</guid>
      <dc:creator>NURAO</dc:creator>
      <dc:date>2018-10-04T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: error; (execution) invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/501544#M4387</link>
      <description>&lt;P&gt;The definition of BOOTSTAT is invalid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;START BOOTSTAT(YB, TRIMEANB) GLOBAL (NY, NTOT, WOBS, BOBS, SEED);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALL BP(&lt;FONT color="#FF0000"&gt;AB, LOWFENB, UPPFENB, LEFTB&lt;/FONT&gt;, TRIMEANB);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FINISH;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The arguments in RED are not defined, so BP cannot process that call.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 15:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/501544#M4387</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-04T15:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: error; (execution) invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/516543#M4439</link>
      <description>&lt;P&gt;If you dont mine to answer, where should I define them.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 01:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/516543#M4439</guid>
      <dc:creator>NURAO</dc:creator>
      <dc:date>2018-11-28T01:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: error; (execution) invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/516614#M4440</link>
      <description>&lt;P&gt;I don't know. The program does not make sense because the arguments are invalid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a suggestion. The BOOTSTAT module does not do anything except call BP. Therefore in the SEBOXPLOT&amp;nbsp;module, you should be able to replace the call to&amp;nbsp;BOOTSTAT with a call to BP. However, I don't know what arguments you would need to use inside the DO BOOTLOOP loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are doing a&amp;nbsp;bootstrap analysis. You might want to look at &lt;A href="https://blogs.sas.com/content/tag/bootstrap-and-resampling/" target="_self"&gt;my blog posts about how to bootstrap in SAS&lt;/A&gt;. I have several that use PROC IML to bootstrap. You can use your favorite search engine to search for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;bootstrap "proc &lt;/STRONG&gt;iml&lt;STRONG&gt;" site:&lt;A href="https://blogs.sas.com/content/iml" target="_blank"&gt;https://blogs.sas.com/content/iml&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/error-execution-invalid-operand-to-operation/m-p/516614#M4440</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-28T10:49:23Z</dc:date>
    </item>
  </channel>
</rss>

