<?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 proc transreg output meaning in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480086#M24974</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; run the following code and output is below.&amp;nbsp; What's the coefficient here means? And I also get a non-linear curve, so how can I get the equation or formula to output this curve? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transreg data=WORK.NLNONONLINREGSTATS_0001 detail;&lt;BR /&gt;model identity(act_fedcd) = spline(Life_q/nknots=9);&lt;BR /&gt;output predicted coefficients out=work.predict;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2018-07-20 17_15_14-Project - Copy - Copy - SAS Enterprise Guide.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21900i509839E6EE189528/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2018-07-20 17_15_14-Project - Copy - Copy - SAS Enterprise Guide.png" alt="2018-07-20 17_15_14-Project - Copy - Copy - SAS Enterprise Guide.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21899i44DB7578E78AB2C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" alt="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 22:17:46 GMT</pubDate>
    <dc:creator>jojozheng</dc:creator>
    <dc:date>2018-07-20T22:17:46Z</dc:date>
    <item>
      <title>proc transreg output meaning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480086#M24974</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; run the following code and output is below.&amp;nbsp; What's the coefficient here means? And I also get a non-linear curve, so how can I get the equation or formula to output this curve? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transreg data=WORK.NLNONONLINREGSTATS_0001 detail;&lt;BR /&gt;model identity(act_fedcd) = spline(Life_q/nknots=9);&lt;BR /&gt;output predicted coefficients out=work.predict;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2018-07-20 17_15_14-Project - Copy - Copy - SAS Enterprise Guide.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21900i509839E6EE189528/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2018-07-20 17_15_14-Project - Copy - Copy - SAS Enterprise Guide.png" alt="2018-07-20 17_15_14-Project - Copy - Copy - SAS Enterprise Guide.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21899i44DB7578E78AB2C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" alt="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 22:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480086#M24974</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-07-20T22:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg output meaning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480307#M24977</link>
      <description>&lt;P&gt;I don't follow your question. What coefficient?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are fitting a non parametric model, so you can not get a parametric equation describing the fitted curve. But why do you want a formula for plotting purposes? You can use the outputted data to draw the curve? However, the procedure plots the curve on its own I assume since you are able to post the plot here?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 00:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480307#M24977</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-23T00:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg output meaning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480399#M24984</link>
      <description>&lt;P&gt;Your output was too small to read.&amp;nbsp; However, when you fit a spline, the formula for the curve is, naturally, very complicated. If you want a simple curve, don't fit a spline.&amp;nbsp; You &lt;EM&gt;can&lt;/EM&gt; get a formula, but it will not be intuitive at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 12:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480399#M24984</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2018-07-23T12:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg output meaning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480426#M24986</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;I need to predict much more value based on this fitting curve. I think it's better for me to have the plotting formula to plot more points beyond the points I have now? cause I have 1 intercept and 1 coefficient in this output table (right bottom corner) which I thought they are using for plotting curve?&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21929i0D5A8245157FB548/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" alt="2018-07-20 12_40_09-Project - Copy - Copy - SAS Enterprise Guide.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 13:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480426#M24986</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-07-23T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg output meaning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480490#M24988</link>
      <description>No. A spline curve has a very complex equation and it varies between knots of the spline&lt;BR /&gt;Peter&amp;nbsp;</description>
      <pubDate>Mon, 23 Jul 2018 15:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480490#M24988</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2018-07-23T15:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg output meaning</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480784#M25018</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the easiest approach is to &lt;A href="https://blogs.sas.com/content/iml/2017/04/19/restricted-cubic-splines-sas.html" target="_self"&gt;do the spline fitting by using PROC GLMSELECT&lt;/A&gt; instead of TRANSREG. The&amp;nbsp;GLMSELECT procedure supports the STORE statement, which stores the model in an item store. You can use the PLM procedure to score additional data (and graph the results),&amp;nbsp;as discussed in the article &lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_self"&gt;"Techniques for scoring a regression model in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to stick with PROC TRANSREG, you can&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_self"&gt; use the "missing value trick" to score the model&lt;/A&gt; on a new set of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use PROC GLMSELECT, the code will look similar to the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Generate training and scoring data by randomly splitting the Sashelp.Cars data into two parts */
data Cars1 Cars2;
set sashelp.cars(where=(weight&amp;lt;6000));
if rand("Bernoulli", 0.6) then output Cars1;
else output Cars2;
run;

/* Create and store model with PROC GLMSELECT. Score with PROC PLM */

/* fit model on Cars1 data */
proc glmselect data=Cars1;
effect spl = spline(weight/knotmethod=equal(9));
model mpg_city = spl;
store out=SplineModel;
run;

/* score model on Cars2 */
proc plm restore=SplineModel;
   score data=Cars2 out=Pred;
   effectplot;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jul 2018 12:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-output-meaning/m-p/480784#M25018</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-24T12:59:34Z</dc:date>
    </item>
  </channel>
</rss>

