<?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 Testing Homoscedasticity in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-Homoscedasticity/m-p/199140#M10681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am testing heteroscedasticity for Linear Regression Model. I have a categorical independent variable i.e. mealcat having three categories -&lt;/P&gt;&lt;P&gt;1,2 and 3.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using this equation - &lt;STRONG&gt;api00 = a1 + b1*yr_rnd + b2*mealcat + b3*some_col. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Should i create dummy variables (k-1 categories) for a categorical variable&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and then change the equation? Is there any CLASS statement to classify categorical variable in PROC MODEL?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;api00 = a1 + b1*yr_rnd + b2*mealcat1 + b3*mealcat12 + b4*some_col&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above equation correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Detailed Code - &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc model data= bhalla.GLMSELECT;&lt;/P&gt;&lt;P&gt;parms a1 b1 b2 b3;&lt;/P&gt;&lt;P&gt;api00 = a1 + b1*yr_rnd + b2*mealcat + b3*some_col;&lt;/P&gt;&lt;P&gt;fit api00 / white pagan=(1 yr_rnd&amp;nbsp; mealcat some_col)&lt;/P&gt;&lt;P&gt;out=resid1 outresid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 14:45:53 GMT</pubDate>
    <dc:creator>Ujjawal</dc:creator>
    <dc:date>2015-08-14T14:45:53Z</dc:date>
    <item>
      <title>Testing Homoscedasticity</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-Homoscedasticity/m-p/199140#M10681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am testing heteroscedasticity for Linear Regression Model. I have a categorical independent variable i.e. mealcat having three categories -&lt;/P&gt;&lt;P&gt;1,2 and 3.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using this equation - &lt;STRONG&gt;api00 = a1 + b1*yr_rnd + b2*mealcat + b3*some_col. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Should i create dummy variables (k-1 categories) for a categorical variable&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and then change the equation? Is there any CLASS statement to classify categorical variable in PROC MODEL?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;api00 = a1 + b1*yr_rnd + b2*mealcat1 + b3*mealcat12 + b4*some_col&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above equation correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Detailed Code - &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc model data= bhalla.GLMSELECT;&lt;/P&gt;&lt;P&gt;parms a1 b1 b2 b3;&lt;/P&gt;&lt;P&gt;api00 = a1 + b1*yr_rnd + b2*mealcat + b3*some_col;&lt;/P&gt;&lt;P&gt;fit api00 / white pagan=(1 yr_rnd&amp;nbsp; mealcat some_col)&lt;/P&gt;&lt;P&gt;out=resid1 outresid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Testing-Homoscedasticity/m-p/199140#M10681</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2015-08-14T14:45:53Z</dc:date>
    </item>
  </channel>
</rss>

