<?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 Transforming non-normally distributed variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268359#M58083</link>
    <description>&lt;P&gt;I am trying to find the best transformation for a set of non-normally distributed continuous variables. I see that I can use PROC&amp;nbsp;PRINQUAL&amp;nbsp;w/ the TRANSFORM statement and select various options (e.g. Log, Exp), but is there a function or proc that will help me select the best one?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STATA has a function - &lt;A href="http://www.ats.ucla.edu/stat/stata/webbooks/reg/chapter1/statareg1.htm" target="_blank"&gt;ladder&lt;/A&gt; - that will transform variables in a multitude of ways&amp;nbsp;and then present a chi-square statistic to help determine which transformation is the "best", based on the lowest chi-square statistic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does SAS have anything like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2016 19:00:34 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2016-05-04T19:00:34Z</dc:date>
    <item>
      <title>Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268359#M58083</link>
      <description>&lt;P&gt;I am trying to find the best transformation for a set of non-normally distributed continuous variables. I see that I can use PROC&amp;nbsp;PRINQUAL&amp;nbsp;w/ the TRANSFORM statement and select various options (e.g. Log, Exp), but is there a function or proc that will help me select the best one?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STATA has a function - &lt;A href="http://www.ats.ucla.edu/stat/stata/webbooks/reg/chapter1/statareg1.htm" target="_blank"&gt;ladder&lt;/A&gt; - that will transform variables in a multitude of ways&amp;nbsp;and then present a chi-square statistic to help determine which transformation is the "best", based on the lowest chi-square statistic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does SAS have anything like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 19:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268359#M58083</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-04T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268624#M58105</link>
      <description>&lt;P&gt;You may want to look at PROC TRANSREG, and specifically at the Box-Cox transformation material there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 17:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268624#M58105</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-05-05T17:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268632#M58108</link>
      <description>&lt;P&gt;See the doc for &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_transreg_details02.htm" target="_self"&gt;Box-Cox transformations in PROC TRANSREG.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 18:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268632#M58108</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-05T18:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268649#M58109</link>
      <description>&lt;P&gt;Of course, now that a couple of us have recommended something, I can ask the important question: Why? &amp;nbsp;Why do you want to transform through an "optimal transformation"? &amp;nbsp;I would consider the process that generated the values to be of far greater importance in determining the distribution than a best fit. &amp;nbsp;Suppose you do find an optimal transformation, but consideration of the process suggests an alternative. &amp;nbsp;Which approach would likely have greater inferential utility?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end, if you just want the transformed data to look Gaussian, recall that there is not an &amp;nbsp;assumption about the data being normally distributed in linear models (regression, ANOVA, etc.). &amp;nbsp;It is all about the normality of the residuals, which is different cat altogether. &amp;nbsp;And there are powerful techniques available&amp;nbsp;that may not require pre-transformation of the data, if the normality of residuals assumption is not met.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 19:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268649#M58109</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-05-05T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268896#M58114</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham﻿&lt;/a&gt;&amp;nbsp;Thanks for the though provoking quesiton, the reminder, and the useful explanation!&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 19:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/268896#M58114</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-06T19:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/269276#M58132</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham﻿&lt;/a&gt;&amp;nbsp;The&amp;nbsp;Box-Cox transformation in PROC TRANSREG contains a model statement w/ what looks like a dependent (Y) and indepedent (i.e. X) variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc transreg data=x test;
   model BoxCox(y) = identity(x);
run;&lt;/PRE&gt;
&lt;P&gt;Pardon my ignorance, but why is the indepedent variable requried if I am just looking for a transformation of the dependent variable?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My model has a categorical indepedent variable (ANOVA) and&amp;nbsp;PROC TRANSREG seems to require a continuous variable for the model statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 21:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/269276#M58132</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-09T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/270761#M58233</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting an error message that there are invalid values when using the Box-Cox transformation in PROC TRANSREG. There are no missing values, no zero values and no negative values in the dataset. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;ERROR: 31 invalid values were encountered while attempting to transform variable var1;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/270761#M58233</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-16T19:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/270772#M58234</link>
      <description>&lt;P&gt;Depends on the transformation, but probably you are encountering nonpositive values for a transformation that requires positive values. For example, the log() transformation requires positive values.&amp;nbsp; The square-root transformation requires nonnegative values. The inverse transformation (1/x) requires non-zero values, and so forth.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/270772#M58234</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-16T19:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming non-normally distributed variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/270774#M58235</link>
      <description>&lt;P&gt;It looks like you have ruled out most everything, so I would start to suspect character strings where numbers are expected, especially if you imported excel data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transforming-non-normally-distributed-variables/m-p/270774#M58235</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-05-16T19:51:36Z</dc:date>
    </item>
  </channel>
</rss>

