<?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: Proc Model Parameter Estimate to SAS Data File in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416067#M21832</link>
    <description>&lt;P&gt;I modified the same example as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;to include&amp;nbsp;BY processing and got all parameter estimates and statistics as expected. I'm using SAS 9.4 TS1M1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you get the printed version of the parameter and statistics table?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2017 18:31:23 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-11-24T18:31:23Z</dc:date>
    <item>
      <title>Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415864#M21814</link>
      <description>&lt;P&gt;I am trying to&amp;nbsp;run a nonlinear regression model and want the regression parameter coefficient and statistical significance levels to be stored a SAS data file.&amp;nbsp;I am using Proc Model for the estimation. When I use outest to output the estimates only (which just stores the coefficients, not the significance levels), it works perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc model data= FUT2015.Initiate_Window2_1 plots= none noprint;
	by symbl;
	parms S alpha beta;
	del_P = (S/2)*Qt + (alpha + beta - 1)*Q_t1 + alpha*(S/2)*(1-2*pi)*Q_t2;
	fit del_P / outest = FUT2015.Reg_Results_Win1_2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try to use&amp;nbsp;outparms&amp;nbsp;to store the coefficients and the significance, the programme doesn't work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc model data= FUT2015.Initiate_Window2_1 outparms = FUT2015.Reg_Results_Win1_3 plots = none noprint;
	by symbl;
	parms S alpha beta;
	del_P = (S/2)*Qt + (alpha + beta - 1)*Q_t1 + alpha*(S/2)*(1-2*pi)*Q_t2;
	fit del_P;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The programme doesn't throw up any errors, but just stops working after&amp;nbsp;running the model for the last 'symbl'.&lt;/P&gt;&lt;P&gt;If I stop the programme forcefully at this step the log says&lt;/P&gt;&lt;P&gt;'Event Stack Underflow. This is probably caused by mis-matched begin and end event calls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong. Can anyone help?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 16:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415864#M21814</guid>
      <dc:creator>Anirban</dc:creator>
      <dc:date>2017-11-23T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415883#M21815</link>
      <description>&lt;P&gt;Try adding a quit statement after the run;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 18:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415883#M21815</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-23T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415886#M21816</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;adding a quit statement as per your suggestion. Unfortunately, it doesn't work. Now the SAS output dataset contains just the coefficients&amp;nbsp;(not the significance levels) for the last iteration or for the last 'symbl'.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 19:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415886#M21816</guid>
      <dc:creator>Anirban</dc:creator>
      <dc:date>2017-11-23T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415900#M21817</link>
      <description>&lt;P&gt;Go for the ODS then. Add the statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; parameterestimates=pe;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;to your code, before the run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 22:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/415900#M21817</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-23T22:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416035#M21827</link>
      <description>&lt;P&gt;Unfortunately, even that exports only the parameter coefficients, not the statistics (e.g. - T-statistics, p-value, Standard Error). I am beginning to think that Proc Model does not allow for the statistics to be written to a data set.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 14:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416035#M21827</guid>
      <dc:creator>Anirban</dc:creator>
      <dc:date>2017-11-24T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416043#M21829</link>
      <description>&lt;P&gt;Seems strange. Please post your entire code including the ODS OUTPUT statement. This example from the PROC DOCUMENT documentation outputs&amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;T-statistics, p-value and Standard Error when running&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Logistic Growth Curve Model of U.S. Population';
data uspop;
   input pop :6.3 @@;
   retain year 1780;
   year=year+10;
   label pop='U.S. Population in Millions';
   datalines;
3929  5308  7239   9638  12866  17069  23191  31443  39818 50155
62947 75994 91972 105710 122775 131669 151325 179323 203211
226542 248710
;

ods trace on;
proc model data=uspop;
   label a = 'Maximum Population'
         b = 'Location Parameter'
         c = 'Initial Growth Rate';
   pop = a / ( 1 + exp( b - c * (year-1790) ) );
   fit pop start=(a 1000  b 5.5  c .02);
   ods output ParameterEstimates=ParamEst;
run;quit;
ods trace off;

proc print data=ParamEst;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 17:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416043#M21829</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-24T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416067#M21832</link>
      <description>&lt;P&gt;I modified the same example as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;to include&amp;nbsp;BY processing and got all parameter estimates and statistics as expected. I'm using SAS 9.4 TS1M1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you get the printed version of the parameter and statistics table?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 18:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416067#M21832</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-24T18:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Model Parameter Estimate to SAS Data File</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416071#M21833</link>
      <description>&lt;P&gt;Thanks a lot, it's working. I was initially using the ods output statement before proc model instead of before run within proc model.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 18:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Model-Parameter-Estimate-to-SAS-Data-File/m-p/416071#M21833</guid>
      <dc:creator>Anirban</dc:creator>
      <dc:date>2017-11-24T18:45:52Z</dc:date>
    </item>
  </channel>
</rss>

