<?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: Finding max and min of predicted Y in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73299#M21251</link>
    <description>Thanks a lot.  It did the trick.</description>
    <pubDate>Sun, 27 Sep 2009 22:03:55 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-09-27T22:03:55Z</dc:date>
    <item>
      <title>Finding max and min of predicted Y</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73297#M21249</link>
      <description>I'm running linear probability model, thus I need to show that all possible values of Y are between 0 and 1.  How can I find the min and max of predicted values in proc iml?</description>
      <pubDate>Fri, 25 Sep 2009 18:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73297#M21249</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-25T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding max and min of predicted Y</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73298#M21250</link>
      <description>Brentos;&lt;BR /&gt;
Normally you can output the set within the proc function with the output out=p  p=yhat (p is an arbitrary designation) statement  with the predicted values by using the p=yhat . From there, you can transpose the set and use the functions min,max, etc...&lt;BR /&gt;
See code below.&lt;BR /&gt;
&lt;BR /&gt;
If there are more efficent methods I would be game to hear them. Hope this helps you.&lt;BR /&gt;
&lt;BR /&gt;
data X1;&lt;BR /&gt;
set p;&lt;BR /&gt;
x=compress('x'||_n_);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=X1 out=descstats;&lt;BR /&gt;
id x;&lt;BR /&gt;
var predicted;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data descstats;&lt;BR /&gt;
set descstats;&lt;BR /&gt;
&lt;BR /&gt;
min1=min(of x1-x?);&lt;BR /&gt;
max1=max(of x1-x?);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print;&lt;BR /&gt;
var min1 max1;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 25 Sep 2009 18:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73298#M21250</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2009-09-25T18:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding max and min of predicted Y</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73299#M21251</link>
      <description>Thanks a lot.  It did the trick.</description>
      <pubDate>Sun, 27 Sep 2009 22:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-max-and-min-of-predicted-Y/m-p/73299#M21251</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-27T22:03:55Z</dc:date>
    </item>
  </channel>
</rss>

