<?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 Median and IQR for subgroups in Quantile Regression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Median-and-IQR-for-subgroups-in-Quantile-Regression/m-p/550085#M74501</link>
    <description>&lt;P&gt;I am running a median regression and a few of my independent variables such as severity of stroke is categorized into 5 categories. When I run proc quantreg, I do not get medians, IQR, number of observations for each separate subgroup(severity of stroke as none/minor/moder....). I would like to report this as there are missing values in my data set due to its retrospective nature, so I need to get information specific to the model. The question I am trying to answer is looking at a measure of stroke severity at discharge and how that depends on admission severity of stroke and other variables like age and so on. I am wondering how to get this data. My current code is below. Btw this is my first time using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc quantreg data=filtereddata ci=resampling;&lt;BR /&gt;class corticalinvolvement sex alcohol age_cat admission_nihss_score;&lt;BR /&gt;model last_nihss_score = age_cat sex alcohol prophylaxis admission_nihss_score infarctsize corticalinvolvement / quantile = .5;&lt;BR /&gt;estimate 'Diff in Medians' sex 1 -1 / CL;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any insight!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 23:32:58 GMT</pubDate>
    <dc:creator>cwc9</dc:creator>
    <dc:date>2019-04-10T23:32:58Z</dc:date>
    <item>
      <title>Median and IQR for subgroups in Quantile Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Median-and-IQR-for-subgroups-in-Quantile-Regression/m-p/550085#M74501</link>
      <description>&lt;P&gt;I am running a median regression and a few of my independent variables such as severity of stroke is categorized into 5 categories. When I run proc quantreg, I do not get medians, IQR, number of observations for each separate subgroup(severity of stroke as none/minor/moder....). I would like to report this as there are missing values in my data set due to its retrospective nature, so I need to get information specific to the model. The question I am trying to answer is looking at a measure of stroke severity at discharge and how that depends on admission severity of stroke and other variables like age and so on. I am wondering how to get this data. My current code is below. Btw this is my first time using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc quantreg data=filtereddata ci=resampling;&lt;BR /&gt;class corticalinvolvement sex alcohol age_cat admission_nihss_score;&lt;BR /&gt;model last_nihss_score = age_cat sex alcohol prophylaxis admission_nihss_score infarctsize corticalinvolvement / quantile = .5;&lt;BR /&gt;estimate 'Diff in Medians' sex 1 -1 / CL;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any insight!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 23:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Median-and-IQR-for-subgroups-in-Quantile-Regression/m-p/550085#M74501</guid>
      <dc:creator>cwc9</dc:creator>
      <dc:date>2019-04-10T23:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Median and IQR for subgroups in Quantile Regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Median-and-IQR-for-subgroups-in-Quantile-Regression/m-p/550864#M74553</link>
      <description>&lt;P&gt;It's not clear to me whether you want the univariate statistics (median, IQR,...) or whether you are asking for the dependent variable of the quantile regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the univariate statistics, use PROC UNIVARIATE. You can use the BY statement if you want information for subgroups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the quantile regression, you can get a predicted (conditional) median for each value of the explanatory&amp;nbsp;variables. Similarly, you can look at the 25th and 75th predicted quantiles to get a conditional IQR for each value of the explanatory variables. The value of the median and IQR depend on the value for the explanatory&amp;nbsp;variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 23:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Median-and-IQR-for-subgroups-in-Quantile-Regression/m-p/550864#M74553</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-04-13T23:49:19Z</dc:date>
    </item>
  </channel>
</rss>

