<?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: Box-cox proc transreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745589#M36323</link>
    <description>&lt;P&gt;Your Lambda list includes 0, which is the log transformation. Log of 0 is undefined, and that is why you received that error message.&lt;/P&gt;
&lt;P&gt;You might want to exclude these observations, at least for lambda=0.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 19:16:47 GMT</pubDate>
    <dc:creator>jiltao</dc:creator>
    <dc:date>2021-06-03T19:16:47Z</dc:date>
    <item>
      <title>Box-cox proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745587#M36322</link>
      <description>&lt;P&gt;I am using Proc transreg to identify which link function will be appropriate for my dependent variable in the GLM model. I used the code as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; proc transreg data=finalfile;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;model boxcox(cost/lambda=-1 to 2 by .5)=identity(&amp;amp;variablelist);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get an error&lt;BR /&gt;ERROR: 24 invalid values were encountered while attempting to transform variable cost. Is it because my dependent variable has 24 observations with zero costs.&lt;/P&gt;
&lt;P&gt;How can I resolve this issue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I changed the code by adding parameter=1&lt;/P&gt;
&lt;P&gt;It works giving me the following output and that lamba=0 is selected&lt;/P&gt;
&lt;DIV class="branch"&gt;&lt;BR /&gt;
&lt;DIV class="c proctitle"&gt;The TRANSREG Procedure&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Transreg: Iteration History" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="6" scope="colgroup"&gt;TRANSREG Univariate Algorithm Iteration History for BoxCox(cost)&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Iteration&lt;BR /&gt;Number&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Average&lt;BR /&gt;Change&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Maximum&lt;BR /&gt;Change&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;R-Square&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Criterion&lt;BR /&gt;Change&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Note&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;0.00000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.00000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.15025&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;Converged&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Transreg: Convergence Status" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Algorithm converged.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&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;Please assist me with right method. Thank you&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2021 19:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745587#M36322</guid>
      <dc:creator>uzma03505621</dc:creator>
      <dc:date>2021-06-03T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Box-cox proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745589#M36323</link>
      <description>&lt;P&gt;Your Lambda list includes 0, which is the log transformation. Log of 0 is undefined, and that is why you received that error message.&lt;/P&gt;
&lt;P&gt;You might want to exclude these observations, at least for lambda=0.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 19:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745589#M36323</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-06-03T19:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Box-cox proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745602#M36324</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_transreg_details02.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_transreg_details02.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you figured out, you can specify PARAMETER= to add a value to each datum to avoid log 0 and other invalid operations. There are many other ways to get nonlinear transformations in TRANSREG and other procedures.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 19:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Box-cox-proc-transreg/m-p/745602#M36324</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2021-06-03T19:43:34Z</dc:date>
    </item>
  </channel>
</rss>

