<?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: weighted median and confidence interval in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742735#M232389</link>
    <description>&lt;P&gt;Hello Ballardw,&lt;/P&gt;
&lt;P&gt;Thank you for you response.&lt;/P&gt;
&lt;P&gt;The following is the log. I looked through my code but could not figure out what the problem is.&lt;/P&gt;
&lt;PRE&gt;
6266
6267  proc  surveymeans data=Avera_matched_data  q1 q3 median;
6268  class telemed_use;
6269  strata telemed_use;
6270  var Hospital_free_days4 ;
6271  domain _imputation_ ;
6272   ods output domain = outex1 ;
6273  run;

WARNING: Output 'domain' was not created.  Make sure that the output object name, label, or path
         is spelled correctly.  Also, verify that the appropriate procedure options are used to
         produce the requested output object.  For example, verify that the NOPRINT option is not
         used.
NOTE: PROCEDURE SURVEYMEANS used (Total process time):
      real time           9.77 seconds
      cpu time            0.26 seconds

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 17:56:22 GMT</pubDate>
    <dc:creator>UcheOkoro</dc:creator>
    <dc:date>2021-05-20T17:56:22Z</dc:date>
    <item>
      <title>weighted median and confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742677#M232358</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, I need help calculating the weighted median and confidence interval of for hospital_free_days by telemed_use&amp;nbsp; across 5 imputations.&lt;/P&gt;
&lt;P&gt;The proc surveymeans is ignoring the class statement and also refusing to create the&amp;nbsp; ods output domain = outex1 ;&lt;/P&gt;
&lt;P&gt;Please, I also need help with the right Proc MI analyze code.&lt;/P&gt;
&lt;P&gt;I am using the following&amp;nbsp; SAS code.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc  surveymeans data=Avera_matched_data  q1 q3 median;
class telemed_use;
strata telemed_use;
var Hospital_free_days4 ;
domain _imputation_ ;
 ods output domain = outex1 ;
run;

proc mianalyze data=outex1;
by Hospital_free_days4  telemed_use;*this would be the TABLES variable;
modeleffects median;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 15:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742677#M232358</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2021-05-20T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: weighted median and confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742723#M232383</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319831"&gt;@UcheOkoro&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, I need help calculating the weighted median and confidence interval of for hospital_free_days by telemed_use&amp;nbsp; across 5 imputations.&lt;/P&gt;
&lt;P&gt;The proc surveymeans is ignoring the class statement and also refusing to create the&amp;nbsp; ods output domain = outex1 ;&lt;/P&gt;
&lt;P&gt;Please, I also need help with the right Proc MI analyze code.&lt;/P&gt;
&lt;P&gt;I am using the following&amp;nbsp; SAS code.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc  surveymeans data=Avera_matched_data  q1 q3 median;
class telemed_use;
strata telemed_use;
var Hospital_free_days4 ;
domain _imputation_ ;
 ods output domain = outex1 ;
run;

proc mianalyze data=outex1;
by Hospital_free_days4  telemed_use;*this would be the TABLES variable;
modeleffects median;
run;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When code "is ignoring the class statement and also refusing to create the&amp;nbsp; ods output domain = outex1 " or other unexpected behavior the first thing you should do is read the LOG. If you don't understand what the log means, then copy the entire log for the procedure or data step including all code and messages, notes, warnings and/or errors, open a text box on the forum using the &amp;lt;/&amp;gt; icon at the top of the message window, and paste the text.&lt;/P&gt;
&lt;P&gt;The text box is important because the message windows on the forum will reformat text and render many of the diagnostic bits that SAS provides in the log less useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 17:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742723#M232383</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-20T17:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: weighted median and confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742735#M232389</link>
      <description>&lt;P&gt;Hello Ballardw,&lt;/P&gt;
&lt;P&gt;Thank you for you response.&lt;/P&gt;
&lt;P&gt;The following is the log. I looked through my code but could not figure out what the problem is.&lt;/P&gt;
&lt;PRE&gt;
6266
6267  proc  surveymeans data=Avera_matched_data  q1 q3 median;
6268  class telemed_use;
6269  strata telemed_use;
6270  var Hospital_free_days4 ;
6271  domain _imputation_ ;
6272   ods output domain = outex1 ;
6273  run;

WARNING: Output 'domain' was not created.  Make sure that the output object name, label, or path
         is spelled correctly.  Also, verify that the appropriate procedure options are used to
         produce the requested output object.  For example, verify that the NOPRINT option is not
         used.
NOTE: PROCEDURE SURVEYMEANS used (Total process time):
      real time           9.77 seconds
      cpu time            0.26 seconds

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 17:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742735#M232389</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2021-05-20T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: weighted median and confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742782#M232417</link>
      <description>&lt;P&gt;Please run this code and share the result.&lt;/P&gt;
&lt;PRE&gt;Proc Freq data=Avera_matched_data;
  tables _imputation_  ;
run;&lt;/PRE&gt;
&lt;P&gt;There are times when the various survey procedures do not "like" having the same variable on the STRATA statement and used in another role. You may need to add another variable with the same values as the STRATA variable to use as the Class variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously don't have your data to test that last possibility.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 20:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weighted-median-and-confidence-interval/m-p/742782#M232417</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-20T20:18:34Z</dc:date>
    </item>
  </channel>
</rss>

