<?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 overall mean of clusters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537749#M147942</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a very simple question.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;my data is structured so that each clinician has a set of visits with a dummy variable for imaging. I am able calculate the clinician specific rate (denominator=visits, the numerator=images ordered during visit), but I can’t figure out how to get the summary statistics of the overall per-clinician rates. &amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; I am currently using proc means….this code gives me the rate (with the mean statistic), but I want to calculate the overall mean and interquartile ranges across these individual means. &amp;nbsp;does that make sense? &amp;nbsp;should I create a new variable?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;proc means DATA=out.lbp_NP_spec_flagREVIS;&lt;/DIV&gt;&lt;DIV class=""&gt;where np_gen75=1;&lt;/DIV&gt;&lt;DIV class=""&gt;class image_rfr_npi;&lt;/DIV&gt;&lt;DIV class=""&gt;var x_ray_mri_flag;&lt;/DIV&gt;&lt;DIV class=""&gt;output out=all_lvi_rates_NP ;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;thanks for your help!&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Monica&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Feb 2019 16:36:49 GMT</pubDate>
    <dc:creator>grateful</dc:creator>
    <dc:date>2019-02-22T16:36:49Z</dc:date>
    <item>
      <title>overall mean of clusters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537749#M147942</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a very simple question.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;my data is structured so that each clinician has a set of visits with a dummy variable for imaging. I am able calculate the clinician specific rate (denominator=visits, the numerator=images ordered during visit), but I can’t figure out how to get the summary statistics of the overall per-clinician rates. &amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; I am currently using proc means….this code gives me the rate (with the mean statistic), but I want to calculate the overall mean and interquartile ranges across these individual means. &amp;nbsp;does that make sense? &amp;nbsp;should I create a new variable?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;proc means DATA=out.lbp_NP_spec_flagREVIS;&lt;/DIV&gt;&lt;DIV class=""&gt;where np_gen75=1;&lt;/DIV&gt;&lt;DIV class=""&gt;class image_rfr_npi;&lt;/DIV&gt;&lt;DIV class=""&gt;var x_ray_mri_flag;&lt;/DIV&gt;&lt;DIV class=""&gt;output out=all_lvi_rates_NP ;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;thanks for your help!&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Monica&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Feb 2019 16:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537749#M147942</guid>
      <dc:creator>grateful</dc:creator>
      <dc:date>2019-02-22T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: overall mean of clusters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537761#M147950</link>
      <description>Check your output data set. Since you don't specify NWAY, there should be two _type_ values. One is overall, and one is for each clinician.</description>
      <pubDate>Fri, 22 Feb 2019 16:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537761#M147950</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-22T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: overall mean of clusters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537782#M147959</link>
      <description>&lt;P&gt;Great--I see that now.&amp;nbsp; How do I find the interquartile range (min q1 median q2 and max)?&amp;nbsp; do I need to create a new variable via the out put statement and then run a separate proc means on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;proc means DATA=out.lbp_NP_spec_flagREVIS mean=rate;&lt;/DIV&gt;&lt;DIV class=""&gt;where np_gen75=1;&lt;/DIV&gt;&lt;DIV class=""&gt;class image_rfr_npi;&lt;/DIV&gt;&lt;DIV class=""&gt;var x_ray_mri_flag;&lt;/DIV&gt;&lt;DIV class=""&gt;output out=all_lvi_rates_NP ;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks!&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Monica&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Feb 2019 17:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537782#M147959</guid>
      <dc:creator>grateful</dc:creator>
      <dc:date>2019-02-22T17:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: overall mean of clusters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537787#M147961</link>
      <description>You control the stats on the OUTPUT statement. Add all the statistics you want to that line with an = after the word, ie&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output out=.... mean= min= max= Q1= median= / autoname autolabel;</description>
      <pubDate>Fri, 22 Feb 2019 18:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/overall-mean-of-clusters/m-p/537787#M147961</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-22T18:12:29Z</dc:date>
    </item>
  </channel>
</rss>

