<?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 Re: Confusing about running fixed effect variables? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720593#M34888</link>
    <description>&lt;P&gt;as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; said... and you must specify the model as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model dependentvar = var3 var4 var1 var2 / solution ss3;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2021 22:43:34 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2021-02-19T22:43:34Z</dc:date>
    <item>
      <title>Confusing about running fixed effect variables?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720586#M34886</link>
      <description>&lt;P&gt;Hi all experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS from STATA. I a just wondering that in STATA, if I want to do two-way fixed effects (for example for var1 and var2), Ineed to transform these variables to numeric type by using the code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;encode var2, generate(var22)
encode var1, generate(var12)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This ocde can transform from the combination of words and numbers to numeric type that we can run regression afterwards (for example, they can transform string "111AQW" to numeric 111AQW).&lt;/P&gt;&lt;P&gt;I am not sure whether we need to transform all variables to numeric style when running regression for the categorized variables as the regression below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=work.have;
    class var1 var2;
    model dependentvar var3 var4 var1 var2 /solution ss3;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, in this regression, I run dependentvar on var3 and var4 and control fixed effects for var1 and var2. So whther I need to transform var1 and var2 to numeric, and is there any code to do so ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 21:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720586#M34886</guid>
      <dc:creator>ResoluteCarbon</dc:creator>
      <dc:date>2021-02-19T21:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Confusing about running fixed effect variables?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720587#M34887</link>
      <description>&lt;P&gt;You don't. Variables in the CLASS statement can be numeric or character.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 21:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720587#M34887</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-19T21:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Confusing about running fixed effect variables?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720593#M34888</link>
      <description>&lt;P&gt;as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; said... and you must specify the model as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model dependentvar = var3 var4 var1 var2 / solution ss3;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 22:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confusing-about-running-fixed-effect-variables/m-p/720593#M34888</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-02-19T22:43:34Z</dc:date>
    </item>
  </channel>
</rss>

