<?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: Impute missing values of the vairables with median by study, treatment and gender in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359919#M18886</link>
    <description>&lt;P&gt;When you use the REPONLY option, PROC STDIZE does not standardize the data, but merely replaces the missing values with the values you specify in your MISSING= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is specified in the syntax documentation for PROC STDIZE here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_stdize_sect004.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_stdize_sect004.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 09:41:55 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-05-19T09:41:55Z</dc:date>
    <item>
      <title>Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359917#M18885</link>
      <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying impute the missing values for the vairables in a dataset with median by study, treatment and gender using proc stdize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;proc stdize data=have out=want missing=median reponly;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;var &amp;nbsp; alti albi asti;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;by study notsorted treatment notsorted gender notsorted;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this code gives the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;WARNING: At least one of the scale and location estimators of variable alti can not be&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;computed. Variable alti&amp;nbsp;will not be standardized.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 09:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359917#M18885</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2017-05-19T09:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359919#M18886</link>
      <description>&lt;P&gt;When you use the REPONLY option, PROC STDIZE does not standardize the data, but merely replaces the missing values with the values you specify in your MISSING= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is specified in the syntax documentation for PROC STDIZE here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_stdize_sect004.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_stdize_sect004.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 09:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359919#M18886</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-05-19T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359921#M18887</link>
      <description>&lt;P&gt;This could indicate that the ALTI variable does not have a sufficient number of nonzero statistics for one of the BY groups. Change to PROC MEANS and write the mediians&amp;nbsp;to a data set, like in this example (untested):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have median noprint;
var   alti albi asti;
by study notsorted treatment notsorted gender notsorted;
output out=out median=;
run;

proc print data=out;
where alti=.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 May 2017 09:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359921#M18887</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-19T09:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359923#M18888</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;: Yes, that is what I wanted I just need to replace the missing values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 09:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359923#M18888</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2017-05-19T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359924#M18889</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Rick, Thanks for this solution, this is the output from the table. I'm &amp;nbsp;still not sure how to use this table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; study &amp;nbsp; &amp;nbsp;treatment gender _TYPE_ &amp;nbsp;_FREQ_ alti &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;asti &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;albi&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;43.5&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 May 2017 10:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359924#M18889</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2017-05-19T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359927#M18890</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8961i831E4AB9FC20FF52/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="median.png" title="median.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359927#M18890</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2017-05-19T10:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359929#M18891</link>
      <description>&lt;P&gt;Ah ok, I missread,&amp;nbsp;I thought you actually wanted to standardize your data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359929#M18891</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-05-19T10:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359930#M18892</link>
      <description>&lt;P&gt;You "use it" by recognizing what it means. There are three BY groups for which the median is missing. Use a WHERE clause to exclude&amp;nbsp;those BY groups. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHERE stud ^= 201;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359930#M18892</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-19T10:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359962#M18895</link>
      <description>&lt;P&gt;Why you add NOTSORTED ? it is keyword for BY statement,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should remove it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;by study notsorted treatment notsorted gender notsorted;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;by study &amp;nbsp;treatment &amp;nbsp;gender;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 13:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359962#M18895</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-05-19T13:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Impute missing values of the vairables with median by study, treatment and gender</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359964#M18896</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likeky using the NOTSORTED option is causing an incorrect calculation of the median for your groups.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 13:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Impute-missing-values-of-the-vairables-with-median-by-study/m-p/359964#M18896</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-19T13:28:38Z</dc:date>
    </item>
  </channel>
</rss>

