<?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 How to compare means when the dependent variable is categorical? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841723#M41732</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am analyzing data where the dependent variable is categorical, and independent variables are continuous or categorical. What would be the best way to compare and generate a p-value? I was thinking proc ANOVA, but not quite sure.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 19:25:54 GMT</pubDate>
    <dc:creator>aw016</dc:creator>
    <dc:date>2022-10-31T19:25:54Z</dc:date>
    <item>
      <title>How to compare means when the dependent variable is categorical?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841723#M41732</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am analyzing data where the dependent variable is categorical, and independent variables are continuous or categorical. What would be the best way to compare and generate a p-value? I was thinking proc ANOVA, but not quite sure.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 19:25:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841723#M41732</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2022-10-31T19:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare means when the dependent variable is categorical?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841724#M41733</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/354589"&gt;@aw016&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am analyzing data where the dependent variable is continuous, and independent variables are continuous or categorical. What would be the best way to compare and generate a p-value? I was thinking proc ANOVA, but not quite sure.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Okay, let's stop here. Your title ("dependent variable is categorical") and your first sentence ("dependent variable is continuous") contradict each other. So, please clarify.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 19:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841724#M41733</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-31T19:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare means when the dependent variable is categorical?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841728#M41735</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for reminding me! It's a typo, I have edited the question. I meant categorical.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 19:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841728#M41735</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2022-10-31T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare means when the dependent variable is categorical?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841737#M41737</link>
      <description>&lt;P&gt;Assuming that you have a categorical predictor variable and you want to estimate and compare the response (on the mean scale) among its levels then you can use the NLMeans macro. When the response is binary, this is the risk difference and&amp;nbsp;&lt;A href="http://support.sas.com/kb/37228" target="_self"&gt;this note&lt;/A&gt; illustrates how to do it. Another option is to estimate the difference in predictive margins for the predictor using the Margins macro which is also shown in that note. If the predictor is continuous, then you can estimate the change in the response mean for some amount of change in the predictor. This is the average marginal effect of the predictor and it can be estimated by the Margins macro as shown in &lt;A href="http://support.sas.com/kb/22604" target="_self"&gt;this note&lt;/A&gt;. You would definitely not use PROC ANOVA which assumes that the response is continuous and approximately normally distributed.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 19:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-means-when-the-dependent-variable-is-categorical/m-p/841737#M41737</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-10-31T19:46:57Z</dc:date>
    </item>
  </channel>
</rss>

