<?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 Combined Regression with Proc GLM in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634012#M30368</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am beginner to deal with Proc GLM and I am trying to apply this model :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m3.PNG" style="width: 763px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37198i0ADB1D23CBC107AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="m3.PNG" alt="m3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;with this SAS code :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SORT
	DATA=TAB2 (keep= Country Sex Age Group year EmployPop EUfshare ImmiShare bar_ent )
	OUT=Sorted_TAB2;
	BY group;  /*when using group returns the same result */
RUN;

TITLE "Model M3";
Proc GLM Data=sorted_Tab2;
model EmployPop=EUfshare bar_ent*ImmiShare/ solution CLPARM alpha=0.05;
By Group ; run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't know if the above code give me that kind of combinnation or I need to run two regressions ?&lt;/P&gt;&lt;P&gt;And How can I obtain the restricted and unrestricted RSS?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 10:45:55 GMT</pubDate>
    <dc:creator>KarimaTouati</dc:creator>
    <dc:date>2020-03-23T10:45:55Z</dc:date>
    <item>
      <title>Combined Regression with Proc GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634012#M30368</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am beginner to deal with Proc GLM and I am trying to apply this model :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m3.PNG" style="width: 763px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37198i0ADB1D23CBC107AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="m3.PNG" alt="m3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;with this SAS code :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SORT
	DATA=TAB2 (keep= Country Sex Age Group year EmployPop EUfshare ImmiShare bar_ent )
	OUT=Sorted_TAB2;
	BY group;  /*when using group returns the same result */
RUN;

TITLE "Model M3";
Proc GLM Data=sorted_Tab2;
model EmployPop=EUfshare bar_ent*ImmiShare/ solution CLPARM alpha=0.05;
By Group ; run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't know if the above code give me that kind of combinnation or I need to run two regressions ?&lt;/P&gt;&lt;P&gt;And How can I obtain the restricted and unrestricted RSS?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 10:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634012#M30368</guid>
      <dc:creator>KarimaTouati</dc:creator>
      <dc:date>2020-03-23T10:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combined Regression with Proc GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634019#M30369</link>
      <description>&lt;P&gt;Somethings that jump out to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Your model variable names don't align with the variable names in your code and we cannot know that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Your sort outputted data is called Sorted_tab2 but in the GLM proc you use TAB2 as your input data. You may want to change that to sorted_tab2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Your model doesn't look like it requires BY groups - that's when you want to run independent models for different groups entirely - for example creating a model for US and China entirely separately. If you want a dummy type variable instead, you'll want to put that variable as a CLASS variable instead or manually create your dummies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a very basic intro to PROC GLM but the SAS/STATS course is free online.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/dae/multivariate-regression-analysis/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/dae/multivariate-regression-analysis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271744"&gt;@KarimaTouati&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am beginner to deal with Proc GLM and I am trying to apply this model :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m3.PNG" style="width: 763px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37198i0ADB1D23CBC107AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="m3.PNG" alt="m3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;with this SAS code :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SORT
	DATA=TAB2 (keep= Country Sex Age Group year EmployPop EUfshare ImmiShare bar_ent )
	OUT=Sorted_TAB2;
	BY group;  /*when using group returns the same result */
RUN;

TITLE "Model M3";
Proc GLM Data=Tab2;
model EmployPop=EUfshare bar_ent*ImmiShare/ solution CLPARM alpha=0.05;
By Group ; run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't know if the above code give me taht kind of combinnation or I need to run two regressions ?&lt;/P&gt;
&lt;P&gt;And How can I obtain the restricted and unrestricted RSS?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 00:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634019#M30369</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-23T00:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combined Regression with Proc GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634062#M30370</link>
      <description>&lt;P&gt;Thank you for your response&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;1- How does the varibale names&amp;nbsp; of my model don't align whith &lt;SPAN&gt;variable names in my code ? Can you explain more please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2- You are right in that. I forgot to change it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3- I used "BY Group" because : i is demographic group (differing in age and sex), j is country and t is year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So what should I use instead ? I thought that using Class is when we have categorical variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4- My code give me that kind of combinnation or I need to run two regressions ?&lt;/P&gt;&lt;P&gt;And How can I obtain the restricted and unrestricted RSS?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 10:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Combined-Regression-with-Proc-GLM/m-p/634062#M30370</guid>
      <dc:creator>KarimaTouati</dc:creator>
      <dc:date>2020-03-23T10:44:43Z</dc:date>
    </item>
  </channel>
</rss>

