<?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: Predict 95% interval in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795631#M39052</link>
    <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 11:42:23 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-02-11T11:42:23Z</dc:date>
    <item>
      <title>Predict 95% interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795604#M39046</link>
      <description>&lt;P&gt;Was told to&amp;nbsp;&lt;SPAN&gt;Predict, with 95% confidence, the values between which the true mean cancer mortality lies for all counties with an exposure index of 5.2.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;code was:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;libname cancer '/home/u59291263/Cancer';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=cancer.cancer;run;&lt;BR /&gt;&lt;BR /&gt;proc reg data= cancer.cancer;&lt;BR /&gt;model exposure= mortality/ clm cli;&lt;BR /&gt;ID mortality;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data work.newobs;&lt;BR /&gt;set cancer.cancer;&lt;BR /&gt;exposure= 5.2;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc reg data= work.newobs;&lt;BR /&gt;model exposure= mortality/ clm cli;&lt;BR /&gt;ID exposure;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But I am getting 5.2 as all my answers&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 06:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795604#M39046</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-02-11T06:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Predict 95% interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795631#M39052</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795631#M39052</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-11T11:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Predict 95% interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795653#M39056</link>
      <description>&lt;P&gt;By the way, I just noticed this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shouldn't your PROC REG have&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model mortality = exposure/ clm cli;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where exposure predicts mortality (instead of the way you wrote it, where mortality predicts exposure)?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795653#M39056</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-11T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Predict 95% interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795654#M39057</link>
      <description>&lt;P&gt;I think you want to predict mortality (the response) from exposure (the independent variable). You have those variables reversed in your MODEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ScoreObs;
exposure= 5.2;
run;

data All;
set cancer ScoreObs(in=score);
NewData = (Score=1);
run;

proc reg data= All plots=none;
model mortality = exposure / clm cli;
output out=ScoreOut Pred=Pred lclm=LowerM uclm=UpperM lcl=LowerI ucl=UpperI;
run;

proc print data=ScoreOut;
where NewData=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795654#M39057</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-11T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Predict 95% interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795657#M39058</link>
      <description>&lt;P&gt;I assume that this is a homework problem, but I feel compelled to mention that linear regression with PROC REG is probably not the best way to measure mortality, which is a rate in the interval [0, 1]&amp;nbsp; (or 0 to 100 if you are measuring percentages).&amp;nbsp; A linear regression could predict a negative mortality rate or a mortality rate that is greater than 100%. Neither of these predictions makes sense, which is why we don't linear regression is not the best way to predict bounded quantities.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predict-95-interval/m-p/795657#M39058</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-11T13:38:34Z</dc:date>
    </item>
  </channel>
</rss>

