<?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 message &amp;quot;type is not in the scope of variables for the data set&amp;quot; in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94840#M630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it worked!&lt;/P&gt;&lt;P&gt;Wonderful! I cant thank you enough!!&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Oct 2012 15:33:03 GMT</pubDate>
    <dc:creator>oldrainbow</dc:creator>
    <dc:date>2012-10-14T15:33:03Z</dc:date>
    <item>
      <title>Error message "type is not in the scope of variables for the data set"</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94836#M626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;I am trying to run this code below, but I am getting an error message all the time that says: &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"type is not in the scope of variables for the data set"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please help! if you need the data set I can email it to you.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please, please help!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Thank you,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Oldrainbow&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Options ls=78;&lt;/P&gt;&lt;P&gt;Title "Turtle Carapace Analysis==2-Sample Hotellings Tsquare";run;&lt;/P&gt;&lt;P&gt;data turtle1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Infile "C:\HSRD8111\turtle.txt";&lt;/P&gt;&lt;P&gt;&amp;nbsp; Input length width height;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;&amp;nbsp; start hotel2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n1=nrow(x1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n2=nrow(x2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; k=ncol(x1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; one1=j(n1,1,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; one2=j(n2,1,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ident1=i(n1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ident2=i(n2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ybar1=x1`*one1/n1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1=x1`*(ident1-one1*one1`/n1)*x1/(n1-1.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print n1 ybar1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print s1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ybar2=x2`*one2/n2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s2=x2`*(ident2-one2*one2`/n2)*x2/(n2-1.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print n2 ybar2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print s2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spool=((n1-1.0)*s1+(n2-1.0)*s2)/(n1+n2-2.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print spool;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2=(ybar1-ybar2)`*inv(spool*(1/n1+1/n2))*(ybar1-ybar2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f=(n1+n2-k-1)*t2/k/(n1+n2-2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; df1=k;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; df2=n1+n2-k-1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=1-probf(f,df1,df2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print t2 f df1 df2 p;&lt;/P&gt;&lt;P&gt;&amp;nbsp; finish;&lt;/P&gt;&lt;P&gt;&amp;nbsp; use turtle1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read all var {length width height} where (type="female") into x1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read all var {length width height} where (type="male") into x2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run hotel2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 14:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94836#M626</guid>
      <dc:creator>oldrainbow</dc:creator>
      <dc:date>2012-10-14T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error message "type is not in the scope of variables for the data set"</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94837#M627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will have more success at finding an answer if you move this post over to the iml forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 14:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94837#M627</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-14T14:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error message "type is not in the scope of variables for the data set"</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94838#M628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am totally new here.. I really appreciate your advice. I'll look for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 14:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94838#M628</guid>
      <dc:creator>oldrainbow</dc:creator>
      <dc:date>2012-10-14T14:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error message "type is not in the scope of variables for the data set"</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94839#M629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS is expecting to find a (character) variable in the turtle1 dataset called "type", however it only contains the three variables: length, width and height.&amp;nbsp; Try modifying the datastep to read the extra variable, along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Input length width height type : $6.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 15:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94839#M629</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2012-10-14T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error message "type is not in the scope of variables for the data set"</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94840#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it worked!&lt;/P&gt;&lt;P&gt;Wonderful! I cant thank you enough!!&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 15:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Error-message-quot-type-is-not-in-the-scope-of-variables-for-the/m-p/94840#M630</guid>
      <dc:creator>oldrainbow</dc:creator>
      <dc:date>2012-10-14T15:33:03Z</dc:date>
    </item>
  </channel>
</rss>

