<?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: Imputation of missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491913#M129162</link>
    <description>&lt;P&gt;Add a BY statement to PROC STDIZE to group by source/destination.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220091"&gt;@deltaskipper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Problem statement: I have a data set flying which consist of&amp;nbsp; variables:&lt;/P&gt;
&lt;P&gt;[1]origin [2]destination [3]carrier [4]delay&lt;/P&gt;
&lt;P&gt;Now I want to replace the missing value in variable delay with average delay on the specific route(source-destination) and carrier.&lt;/P&gt;
&lt;P&gt;If i use proc stdize for imputation it replace&amp;nbsp; the missing value with the average of variable delay which I dont want to do.&lt;/P&gt;
&lt;P&gt;Any suggestion/help will appreciate.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Sep 2018 17:43:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-02T17:43:01Z</dc:date>
    <item>
      <title>Imputation of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491908#M129158</link>
      <description>&lt;P&gt;Problem statement: I have a data set flying which consist of&amp;nbsp; variables:&lt;/P&gt;&lt;P&gt;[1]origin [2]destination [3]carrier [4]delay&lt;/P&gt;&lt;P&gt;Now I want to replace the missing value in variable delay with average delay on the specific route(source-destination) and carrier.&lt;/P&gt;&lt;P&gt;If i use proc stdize for imputation it replace&amp;nbsp; the missing value with the average of variable delay which I dont want to do.&lt;/P&gt;&lt;P&gt;Any suggestion/help will appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code :&lt;/P&gt;&lt;P&gt;proc stdize data=flight missing=mean reponly&amp;nbsp; out=missing_flight;&lt;BR /&gt;var air_time;/* delay*/&lt;BR /&gt;by&amp;nbsp; origin dest carrier notsorted ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It shows some warning :&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: At least one of the scale and location estimators of variable air_time can not be computed. Variable air_time will not be&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;standardized.&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;After that I check my missing values in the output dataset&amp;nbsp; missing_flight . It is still missing and imputation is not done.&lt;/P&gt;&lt;P&gt;what am I doing wrong here?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 18:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491908#M129158</guid>
      <dc:creator>deltaskipper</dc:creator>
      <dc:date>2018-09-02T18:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Imputation of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491913#M129162</link>
      <description>&lt;P&gt;Add a BY statement to PROC STDIZE to group by source/destination.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220091"&gt;@deltaskipper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Problem statement: I have a data set flying which consist of&amp;nbsp; variables:&lt;/P&gt;
&lt;P&gt;[1]origin [2]destination [3]carrier [4]delay&lt;/P&gt;
&lt;P&gt;Now I want to replace the missing value in variable delay with average delay on the specific route(source-destination) and carrier.&lt;/P&gt;
&lt;P&gt;If i use proc stdize for imputation it replace&amp;nbsp; the missing value with the average of variable delay which I dont want to do.&lt;/P&gt;
&lt;P&gt;Any suggestion/help will appreciate.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 17:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491913#M129162</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-02T17:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Imputation of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491922#M129171</link>
      <description>&lt;P&gt;Maybe you misinterpreted what NOTSORTED means in the BY statement. NOTSORTED means that the data is grouped by the &lt;EM&gt;origin, dest, and&amp;nbsp;carrier&lt;/EM&gt;&amp;nbsp;variables, but that they are not in ascending or descending order. Try sorting your data prior to calling STDIZE without the&amp;nbsp;NOTSORTED keyword.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 19:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491922#M129171</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-09-02T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Imputation of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491948#M129186</link>
      <description>FYI if you respond by editing your original post no one knows what was changed, what is new and it won’t come across as a new post. You’re better off replying than editing your original question.</description>
      <pubDate>Mon, 03 Sep 2018 01:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/491948#M129186</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-03T01:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Imputation of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/492043#M129246</link>
      <description>Yeah from next time. I keep this thing in mind.&lt;BR /&gt;And yes thanks for advice.</description>
      <pubDate>Mon, 03 Sep 2018 12:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/492043#M129246</guid>
      <dc:creator>deltaskipper</dc:creator>
      <dc:date>2018-09-03T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Imputation of missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/492044#M129247</link>
      <description>Thats work.&lt;BR /&gt;Thank you for that</description>
      <pubDate>Mon, 03 Sep 2018 12:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Imputation-of-missing-values/m-p/492044#M129247</guid>
      <dc:creator>deltaskipper</dc:creator>
      <dc:date>2018-09-03T12:45:18Z</dc:date>
    </item>
  </channel>
</rss>

