<?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 TRANSREG Box-Cox ty output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502143#M72702</link>
    <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;Now I got the correct Y transformation output for the Best Lambda at lambda=-0.5&amp;nbsp; &amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But talking about the convenient lambda=0 in this example, isn't that the transformation suppose to be log(Y)=log(13.44)=1.128 ?it is not the output again though...&lt;/P&gt;&lt;P&gt;How is this transformation calculated then..?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the difference between choosing Best Lambda and the Convenient Lambda? Any reason of deciding to choose the convenient lambda when we know both the Best and the Convenient?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 16:02:49 GMT</pubDate>
    <dc:creator>reisaw</dc:creator>
    <dc:date>2018-10-06T16:02:49Z</dc:date>
    <item>
      <title>PROC TRANSREG Box-Cox ty output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502036#M72698</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding to the variable transformation by using Box-Cox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a student taking Regression Analysis class, and here is the code for the example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plasma;
input age plevel;
datalines;
    0  13.44  
    0  12.84  
    0  11.91  
    0  20.09  
    0  15.60  
  1.0  10.11  
  1.0  11.38  
  1.0  10.28  
  1.0   8.96  
  1.0   8.59  
  2.0   9.83  
  2.0   9.00  
  2.0   8.65  
  2.0   7.85  
  2.0   8.88  
  3.0   7.94  
  3.0   6.01  
  3.0   5.14  
  3.0   6.90  
  3.0   6.77  
  4.0   4.86  
  4.0   5.10  
  4.0   5.67  
  4.0   5.75  
  4.0   6.23  
  ;
run;

proc reg data=plasma;
model plevel=age;
run;

ods output boxcox=bc details=details;
proc transreg data=plasma PBOXCOXTABLE detail;
      model boxcox(plevel/ lambda=  -1.2 to 1.2 by 0.1 convenient)
          = identity(age);
      output out = bc_plasma;
run;

proc print data=bc_plasma;
run;

proc reg data=bc_plasma;
model tplevel=age;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so the best lambda for the transformation is -0.50. I have verified and get the same lambda by manually calculating the BoxCox formula in R.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am wondering where is the new variable Y transformation is actually calculated from?&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my textbook, after getting lambda=-0.50. Then the Y-transformation is going to be Y^(-0.50)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, saying the first observation Y=13.44, the Y-transformation by using lambda=-0.5 is&amp;nbsp; &amp;nbsp;0.2727&lt;/P&gt;&lt;P&gt;But in output is 2.59823, and is not from (Y^(-0.50) -1)/(-0.5).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hesitate on whether directly use this output variable as the Y transformation to fit the regression line because I don't know how it is calculated.&lt;/P&gt;&lt;P&gt;Can anyone explain ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502036#M72698</guid>
      <dc:creator>reisaw</dc:creator>
      <dc:date>2018-10-05T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSREG Box-Cox ty output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502039#M72699</link>
      <description>&lt;P&gt;You asked for a convenient lambda, and as shown in the output, it is 0, so that is what transreg does. If you remove the convenient option, you will get what you expect.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502039#M72699</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-10-05T20:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSREG Box-Cox ty output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502143#M72702</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;Now I got the correct Y transformation output for the Best Lambda at lambda=-0.5&amp;nbsp; &amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But talking about the convenient lambda=0 in this example, isn't that the transformation suppose to be log(Y)=log(13.44)=1.128 ?it is not the output again though...&lt;/P&gt;&lt;P&gt;How is this transformation calculated then..?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the difference between choosing Best Lambda and the Convenient Lambda? Any reason of deciding to choose the convenient lambda when we know both the Best and the Convenient?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 16:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502143#M72702</guid>
      <dc:creator>reisaw</dc:creator>
      <dc:date>2018-10-06T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSREG Box-Cox ty output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502149#M72703</link>
      <description>&lt;P&gt;Use natural log (base e) not log base 10.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 17:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502149#M72703</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-10-06T17:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSREG Box-Cox ty output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502158#M72704</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_transreg_sect010.htm#statug.transreg.trgcontopt" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_transreg_sect010.htm#statug.transreg.trgcontopt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the convenient and cll= option.&amp;nbsp; Some analysts might prefer a more meaningful transformation (e.g. linear, log, or square root) over a less meaningful transformation if the parameter for a meaningful transformation is in the confidence interval.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 18:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-TRANSREG-Box-Cox-ty-output/m-p/502158#M72704</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-10-06T18:15:09Z</dc:date>
    </item>
  </channel>
</rss>

