<?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 Box-Cox Transformation with Categorical independent variable in model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Box-Cox-Transformation-with-Categorical-independent-variable-in/m-p/942236#M47037</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Is it correct to use the code below to obtain the λ in a Box-Cox transformation?&lt;/P&gt;
&lt;P&gt;I’m unsure because my model includes an independent categorical variable (pre_score) plus a few categorical and continuous confounders (&lt;CODE class=" language-sas"&gt;age neuro_scale sex&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;I was looking for a way to include a class statement to account for the categorical nature of these variables, but it seems that PROC TRANSREG does not support the class statement.&lt;/P&gt;
&lt;P&gt;Is that necessary to include the categorical nature of these variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let c = 1.45;&lt;BR /&gt;proc transreg data=tmp1      ss2 details plots=(boxcox);
   model BoxCox(fim / parameter=&amp;amp;c  
                         convenient lambda=-2 to 2 by 0.05) = identity(pre_score age neuro_scale sex);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 01:54:20 GMT</pubDate>
    <dc:creator>bhr-q</dc:creator>
    <dc:date>2024-09-03T01:54:20Z</dc:date>
    <item>
      <title>Box-Cox Transformation with Categorical independent variable in model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Box-Cox-Transformation-with-Categorical-independent-variable-in/m-p/942236#M47037</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Is it correct to use the code below to obtain the λ in a Box-Cox transformation?&lt;/P&gt;
&lt;P&gt;I’m unsure because my model includes an independent categorical variable (pre_score) plus a few categorical and continuous confounders (&lt;CODE class=" language-sas"&gt;age neuro_scale sex&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;I was looking for a way to include a class statement to account for the categorical nature of these variables, but it seems that PROC TRANSREG does not support the class statement.&lt;/P&gt;
&lt;P&gt;Is that necessary to include the categorical nature of these variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let c = 1.45;&lt;BR /&gt;proc transreg data=tmp1      ss2 details plots=(boxcox);
   model BoxCox(fim / parameter=&amp;amp;c  
                         convenient lambda=-2 to 2 by 0.05) = identity(pre_score age neuro_scale sex);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 01:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Box-Cox-Transformation-with-Categorical-independent-variable-in/m-p/942236#M47037</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-09-03T01:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Box-Cox Transformation with Categorical independent variable in model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Box-Cox-Transformation-with-Categorical-independent-variable-in/m-p/942237#M47038</link>
      <description>If you really want include some category variables in PROC TRANSREG ,&lt;BR /&gt;You could try to transform them into 0-1 variables to form a Design Matrix(include continuous variables), &lt;BR /&gt;and feed this Design Matrix into PROC TRANSREG .&lt;BR /&gt;Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/02/24/create-a-design-matrix-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/02/24/create-a-design-matrix-in-sas.html&lt;/A&gt;</description>
      <pubDate>Tue, 03 Sep 2024 02:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Box-Cox-Transformation-with-Categorical-independent-variable-in/m-p/942237#M47038</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-03T02:35:59Z</dc:date>
    </item>
  </channel>
</rss>

