<?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 New Variable creation: After or before original data cleaning? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428510#M22511</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to perform k-means cluster analysis on a dataset with 20 variables and 9000 observations. I want to create 2 new variables (Usage and Payment Ratio) using 4 (Balance, Limit, Payment, Minimum Payment) of the 20 variables in the dataset. Ex: Usage = (Balance/Limit) and Payment_ratio = (payment/minimum payment). This is because of the fact that I would now have to use 2 variables in my analysis as compared to the original 4 variables. Now, should I make these new variables at the start itself, or should I first cap the outliers, remove/impute missing values and then create these 2 new variables?&lt;BR /&gt;I tried to first clean the data (with original variables) and then created these two variables. Then I also capped the outliers and treated missing values again for these 2 variables. After doing this, these 2 new variables are skewed and I tried taking log, sqrt etc but the variables are still not normal i.e there is still skewness in these variables. Should I go ahead and do Factor Analysis taking the new skewed variables? If not, how should I transform these 2 variables to minimize their skewness?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please suggest a way to go about this? Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 17:51:24 GMT</pubDate>
    <dc:creator>Shashank7</dc:creator>
    <dc:date>2018-01-17T17:51:24Z</dc:date>
    <item>
      <title>New Variable creation: After or before original data cleaning?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428510#M22511</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to perform k-means cluster analysis on a dataset with 20 variables and 9000 observations. I want to create 2 new variables (Usage and Payment Ratio) using 4 (Balance, Limit, Payment, Minimum Payment) of the 20 variables in the dataset. Ex: Usage = (Balance/Limit) and Payment_ratio = (payment/minimum payment). This is because of the fact that I would now have to use 2 variables in my analysis as compared to the original 4 variables. Now, should I make these new variables at the start itself, or should I first cap the outliers, remove/impute missing values and then create these 2 new variables?&lt;BR /&gt;I tried to first clean the data (with original variables) and then created these two variables. Then I also capped the outliers and treated missing values again for these 2 variables. After doing this, these 2 new variables are skewed and I tried taking log, sqrt etc but the variables are still not normal i.e there is still skewness in these variables. Should I go ahead and do Factor Analysis taking the new skewed variables? If not, how should I transform these 2 variables to minimize their skewness?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please suggest a way to go about this? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428510#M22511</guid>
      <dc:creator>Shashank7</dc:creator>
      <dc:date>2018-01-17T17:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: New Variable creation: After or before original data cleaning?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428524#M22512</link>
      <description>&lt;P&gt;Create the variables and then clean your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, you should usually 'clean' your data before analysis. I'm in the camp that doesn't necessarily believe in capping outliers, because they're often the most interesting portion of the data. The reason, I'm saying create the variables and then clean the data,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is because it makes it easier to see issues in your data and can help you detect irregular data points.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 18:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428524#M22512</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-17T18:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: New Variable creation: After or before original data cleaning?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428568#M22515</link>
      <description>Hi Reeza, I created these two variables before doing anything and then checked their skewness using proc univariate (histogram), I noticed that both of the newly created variables are extremely skewed. Tried to tansform these variables by taking log, square root etc. but the skewness is still there (although it minimized but did not make the variables normal).&lt;BR /&gt;&lt;BR /&gt;Should I go ahead and simply, cap these new variables (along with all other variables), treat missing values and do FA? If not, how should I transform these 2 variables to minimize their skewness and then cap them and then do FA? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jan 2018 19:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-Variable-creation-After-or-before-original-data-cleaning/m-p/428568#M22515</guid>
      <dc:creator>Shashank7</dc:creator>
      <dc:date>2018-01-17T19:44:39Z</dc:date>
    </item>
  </channel>
</rss>

