<?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 Multivariate  regression for subgroups in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699765#M33752</link>
    <description>&lt;P&gt;I’m brand new to sas and funding it hard to get the results I’m wanting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using multivariate regression I have decided to model total volume by subgroups of brand.&lt;/P&gt;
&lt;P&gt;Im using sas studio to do this but have never done this analysis by subgroups before only by category as a whole. Is there any difference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;looking at my results the parameter estimates tables has 6 rows, intercept,unit,price,brand 1,2 and 3 however brand 3 has a 0 degree of freedom which is making me think my method isn’t correct. Any advices would be great thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&lt;/P&gt;
&lt;PRE&gt;proc glmselect data=MS3S30.MARKET1 outdesign(addinputvars)=Work.reg_design;
	class brand_id / param=glm;
	model volume=units price brand_id / showpvalues selection=none;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Nov 2020 12:59:55 GMT</pubDate>
    <dc:creator>laurenhosking</dc:creator>
    <dc:date>2020-11-18T12:59:55Z</dc:date>
    <item>
      <title>Multivariate  regression for subgroups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699765#M33752</link>
      <description>&lt;P&gt;I’m brand new to sas and funding it hard to get the results I’m wanting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using multivariate regression I have decided to model total volume by subgroups of brand.&lt;/P&gt;
&lt;P&gt;Im using sas studio to do this but have never done this analysis by subgroups before only by category as a whole. Is there any difference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;looking at my results the parameter estimates tables has 6 rows, intercept,unit,price,brand 1,2 and 3 however brand 3 has a 0 degree of freedom which is making me think my method isn’t correct. Any advices would be great thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&lt;/P&gt;
&lt;PRE&gt;proc glmselect data=MS3S30.MARKET1 outdesign(addinputvars)=Work.reg_design;
	class brand_id / param=glm;
	model volume=units price brand_id / showpvalues selection=none;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Nov 2020 12:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699765#M33752</guid>
      <dc:creator>laurenhosking</dc:creator>
      <dc:date>2020-11-18T12:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multivariate  regression for subgroups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699768#M33753</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Using multivariate regression I have decided to model total volume by subgroups of brand.&lt;/P&gt;
&lt;P&gt;Im using sas studio to do this but have never done this analysis by subgroups before only by category as a whole.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would help if you showed your code. Do you mean you added a BY BRAND; statement into the PROC?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Is there any difference?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, if I am understanding you properly. When you use BY BRAND; you get individual regressions with slopes and intercept changing for each value of BRAND. When you put BRAND into the MODEL statement, you get one overall slope, one overall intercept, and an effect for each level of BRAND.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;looking at my results the parameter estimates tables has 6 rows, intercept,unit,price,brand 1,2 and 3 however brand 3 has a 0 degree of freedom which is making me think my method isn’t correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, that's the correct output. I wrote an explanation &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Interpreting-Multivariate-Linear-Regression-with-Categorical/m-p/591230#M28913" target="_self"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 12:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699768#M33753</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-18T12:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multivariate  regression for subgroups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699785#M33755</link>
      <description>I added my code into the question but thank you so much that does make sense and the explanation really helped!&lt;BR /&gt;&lt;BR /&gt;In previous questions if pr&amp;gt;|t| is less than 0.05 I have removed the variable and rerun. in my case brand 1 and 2 are so am i correct in assuming this is still expectable to do? And as brand 3 has no value id leave this in?</description>
      <pubDate>Wed, 18 Nov 2020 13:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699785#M33755</guid>
      <dc:creator>laurenhosking</dc:creator>
      <dc:date>2020-11-18T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multivariate  regression for subgroups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699788#M33757</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298952"&gt;@laurenhosking&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I added my code into the question but thank you so much that does make sense and the explanation really helped!&lt;BR /&gt;&lt;BR /&gt;In previous questions if pr&amp;gt;|t| is less than 0.05 I have removed the variable and rerun. in my case brand 1 and 2 are so am i correct in assuming this is still expectable to do? And as brand 3 has no value id leave this in?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But Brand 3 does have a value. As I showed in my example, there is a mean for each group.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, a criterion for removing variables is pr&amp;gt;|t| is &lt;FONT color="#FF0000"&gt;greater&lt;/FONT&gt; than 0.05.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, normally you don't use PROC GLMSELECT if all you have are three variables in the model.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 13:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multivariate-regression-for-subgroups/m-p/699788#M33757</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-18T13:17:46Z</dc:date>
    </item>
  </channel>
</rss>

