<?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: Problem running Sheard Principal Analysis code in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425323#M4263</link>
    <description>&lt;P&gt;Run Proc contents on your imported data set. It is very likely that due to the nature of Excel files that a variable that was previously numeric is character this time or possibly the names of the variables changed. Either might result in missing values for the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the variable type for the variables mention on that referenced line 136 of code: X C NIND.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 18:42:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-01-05T18:42:32Z</dc:date>
    <item>
      <title>Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425318#M4262</link>
      <description>&lt;P&gt;I'm encountering an execution error when analyzing some seasoned SAS code for something called "Sheared Principal Components Analysis" on fish proportional measurements.&amp;nbsp; The error statement reads "&lt;SPAN&gt;ERROR: (execution) Invalid argument or operand; contains missing values" and references line 136 in my code (I think), which reads: "Q = (X`*X - C`*C*NIND)/(NIND-{1}); ".&amp;nbsp; I've successfully run this code hundreds of times in SAS University Edition and earlier versions of SAS.&amp;nbsp; I'm attaching the code and the dataset I'm using in case this sounds like something someone can help me with.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Many thanks, Hank&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425318#M4262</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-05T18:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425323#M4263</link>
      <description>&lt;P&gt;Run Proc contents on your imported data set. It is very likely that due to the nature of Excel files that a variable that was previously numeric is character this time or possibly the names of the variables changed. Either might result in missing values for the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the variable type for the variables mention on that referenced line 136 of code: X C NIND.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 18:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425323#M4263</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-05T18:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425348#M4264</link>
      <description>&lt;P&gt;The variables you mention are defined in "MAIN" code. NIND = number of individuals (43) and C = grand centroid. I imported the data set and all data points are numeric in output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 19:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425348#M4264</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-05T19:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425361#M4266</link>
      <description>&lt;P&gt;Can you post a PROC CONTENTS of your input data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425361#M4266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T20:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425365#M4267</link>
      <description>And you didn't include the data set so we can't run your code either.</description>
      <pubDate>Fri, 05 Jan 2018 20:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425365#M4267</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T20:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425389#M4270</link>
      <description>&lt;P&gt;The data table from Proc Contents is attached.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425389#M4270</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-05T21:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425391#M4271</link>
      <description>&lt;P&gt;Here's the data file.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425391#M4271</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-05T21:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425394#M4272</link>
      <description>&lt;P&gt;That's PROC PRINT, Not PROC CONTENTS.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425394#M4272</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T21:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425396#M4273</link>
      <description>&lt;P&gt;Oops.&amp;nbsp; How's this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425396#M4273</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-05T21:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425399#M4274</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Your original error&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: (execution) Invalid argument or operand; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;contains missing values&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Row 13, DoFL value is missing in the Excel file. It runs fine once you fix the data to not have missing values.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71205"&gt;@hbartjr&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm encountering an execution error when analyzing some seasoned SAS code for something called "Sheared Principal Components Analysis" on fish proportional measurements.&amp;nbsp; The error statement reads "&lt;SPAN&gt;ERROR: (execution) Invalid argument or operand; contains missing values" and references line 136 in my code (I think), which reads: "Q = (X`*X - C`*C*NIND)/(NIND-{1}); ".&amp;nbsp; I've successfully run this code hundreds of times in SAS University Edition and earlier versions of SAS.&amp;nbsp; I'm attaching the code and the dataset I'm using in case this sounds like something someone can help me with.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Many thanks, Hank&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425399#M4274</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T21:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425402#M4275</link>
      <description>&lt;P&gt;Row 13 of DoFL is assigned a "." (period) value in the results table (attached), which I thought meant missing value, and would be skipped.&amp;nbsp; Does SAS no longer work this way?&amp;nbsp; I could delete the entire row and see if that fixes it.&amp;nbsp; I've got to run, so it'll be a while before I can respond to any more posts.&amp;nbsp; Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425402#M4275</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-05T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425405#M4276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71205"&gt;@hbartjr&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Row 13 of DoFL is assigned a "." (period) value in the results table (attached), which I thought meant missing value, and would be skipped.&amp;nbsp; Does SAS no longer work this way?&amp;nbsp; I could delete the entire row and see if that fixes it.&amp;nbsp; I've got to run, so it'll be a while before I can respond to any more posts.&amp;nbsp; Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It does in data steps, not in PROC IML. Matrices math can't handle missing values in this case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 21:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425405#M4276</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T21:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem running Sheard Principal Analysis code</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425470#M4277</link>
      <description>&lt;P&gt;Rezza, Deleting that line of data fixed it!&amp;nbsp; Many thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 01:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-running-Sheard-Principal-Analysis-code/m-p/425470#M4277</guid>
      <dc:creator>hbartjr</dc:creator>
      <dc:date>2018-01-06T01:04:18Z</dc:date>
    </item>
  </channel>
</rss>

