<?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 Solution for Non-normally distributed data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157544#M12263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS Enterprise guide version 6.100 (6.100.0.2870) (64-bit) ODA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am analyzing which variables influence the length of stay in hospital.&lt;/P&gt;&lt;P&gt;The dependant variable is DaysOfStay.&amp;nbsp; This variable does not have normal distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in SAS Enterprose Guide I could normalize the distribution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Mean&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;55.80348&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Median&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;42.50000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Mode&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;15.00000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Skewness&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Kurtosis &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;4.529&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;27.100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Agate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 19:50:22 GMT</pubDate>
    <dc:creator>Agate</dc:creator>
    <dc:date>2013-11-27T19:50:22Z</dc:date>
    <item>
      <title>Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157544#M12263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS Enterprise guide version 6.100 (6.100.0.2870) (64-bit) ODA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am analyzing which variables influence the length of stay in hospital.&lt;/P&gt;&lt;P&gt;The dependant variable is DaysOfStay.&amp;nbsp; This variable does not have normal distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in SAS Enterprose Guide I could normalize the distribution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Mean&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;55.80348&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Median&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;42.50000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Mode&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;15.00000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Skewness&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Kurtosis &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="75"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;4.529&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;27.100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Agate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 19:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157544#M12263</guid>
      <dc:creator>Agate</dc:creator>
      <dc:date>2013-11-27T19:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157545#M12264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need the variable to have a normal distribution to determine if other varaibles influence it? Two variables can have any distribution and still have influence on eachother.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give further explanation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 19:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157545#M12264</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2013-11-27T19:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157546#M12265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The assumption of normality for regression is for the errors, not the variables, though the assumption of normality matters for other tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can standardize a variable to get a normal distn.&lt;/P&gt;&lt;P&gt;2. You can use non-parametric methods if your data doesn't meet the assumptions (e.g Normality)&lt;/P&gt;&lt;P&gt;3. I would also look at a histogram of the data to determine normality, not just stats, you may have an outlier problem you want to deal with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://people.duke.edu/~rnau/testing.htm" title="http://people.duke.edu/~rnau/testing.htm"&gt;Testing the assumptions of linear regression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 20:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157546#M12265</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-11-27T20:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157547#M12266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Reeza for the reply.&lt;/P&gt;&lt;P&gt;I do have to achieve normality for other tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise how to standardize data in order to get a normal distribution? &lt;/P&gt;&lt;P&gt;And which non- parametric methods I could use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Agate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 10:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157547#M12266</guid>
      <dc:creator>Agate</dc:creator>
      <dc:date>2013-11-29T10:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157548#M12267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;You can use Box-Cox transformation using &lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PROC TRANSREG&lt;/SPAN&gt; in SAS to achieve normality.But by the summary statistics "log" may be a good transformation for your data. But one of the main problems with transformations are in the interpretations.&lt;/P&gt;&lt;P&gt;Non - parametric methods will also be useful with lower power.&lt;/P&gt;&lt;P&gt;But you can fit the model with Generalized Linear Models (GLM). The general method for modeling the length of stay in hospital has often GLM approach.&lt;/P&gt;&lt;P&gt;check the following paper to know more about modeling length of stay:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ncbi.nlm.nih.gov/pubmed/9630132"&gt;http://www.ncbi.nlm.nih.gov/pubmed/9630132&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The full PDF of the above file is available by searching in Google. The SAS EG has the very good menu for GLM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 13:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157548#M12267</guid>
      <dc:creator>MohammadFayaz</dc:creator>
      <dc:date>2013-11-29T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157549#M12268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;As I mentioned earlier, the variable LOS in positively skewed,&lt;/P&gt;&lt;P&gt;I was trying to solve the problem by applying log transformations. The reason why I need to normalize the variable is to meet assumptions of multiple linear regression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data FYP.LOS_OUTLIERS_LOG;&lt;/P&gt;&lt;P&gt;SET FYP.LOS_OUTLIERS_LOG;&lt;/P&gt;&lt;P&gt;lny&amp;nbsp;&amp;nbsp;&amp;nbsp; = log(DaysOfStay);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* The natural logarithm (base e) */ &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still new variable seems to be skewed :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/4797_pastedImage_1.png" style="width: 713px; height: 554px;" /&gt;&lt;/P&gt;&lt;P&gt;I wonder if the code I run is correct?!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Agate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 21:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157549#M12268</guid>
      <dc:creator>Agate</dc:creator>
      <dc:date>2014-01-27T21:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157550#M12269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://people.duke.edu/~rnau/testing.htm" title="http://people.duke.edu/~rnau/testing.htm"&gt;Testing the assumptions of linear regression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which one of the 4 assumptions are you violating?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 23:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157550#M12269</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-27T23:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Solution for Non-normally distributed data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157551#M12270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am violating normal distribution of errors assumption&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Solution-for-Non-normally-distributed-data/m-p/157551#M12270</guid>
      <dc:creator>Agate</dc:creator>
      <dc:date>2014-01-29T10:48:35Z</dc:date>
    </item>
  </channel>
</rss>

