<?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: Parameter estimates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147112#M7749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha yes you're right! I got parameter estimates for sweet=2,3,and 4. That is so strange though...SAS doesn't know that .5 is between 0 and 1? Thank you so much for pointing this out to me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2014 02:27:41 GMT</pubDate>
    <dc:creator>newguy1580</dc:creator>
    <dc:date>2014-03-18T02:27:41Z</dc:date>
    <item>
      <title>Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147107#M7744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i'm working with a dataset that has the variable called hisugbev (high sugared beverage intake in servings/week). I'm trying to create a categorical variable with four levels and then create indicator variables from this categorical variable. For some reason after I create the categorical variable and the indicator variables, when I run my model for one of the parameter estimates i get a value of 0 and 0 d.f. Could anyone tell me what the reason might be for that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code below that may help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hisugbev=0 then sweet=1;&lt;/P&gt;&lt;P&gt;else if 0 gt hisugbev lt 1 then sweet=2;&lt;/P&gt;&lt;P&gt;else if 1 ge hisugbev le 3 then sweet=3;&lt;/P&gt;&lt;P&gt;else if 3 gt hisugbev then sweet=4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sweet=1 then sugar1=1; else sugar1=0;&lt;/P&gt;&lt;P&gt;if sweet=2 then sugar2=1; else sugar2=0;&lt;/P&gt;&lt;P&gt;if sweet=3 then sugar3=1; else sugar3=0;&lt;/P&gt;&lt;P&gt;if sweet=4 then sugar4=1; else sugar4=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc phreg;&lt;/P&gt;&lt;P&gt;class sweet (param=ref ref='1');&lt;/P&gt;&lt;P&gt;model tpyrs*c5_1(0) = age sugar2 sugar3 sugar4;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get parameter estimates for sugar3 and sugar4 but not sugar2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 01:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147107#M7744</guid>
      <dc:creator>newguy1580</dc:creator>
      <dc:date>2014-03-18T01:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147108#M7745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your recoding.&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;/P&gt;&lt;P&gt;table hisugbev*sweet;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a good habit to always check your coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your last condition is incorrect, it read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 GT highsugbev&lt;/P&gt;&lt;P&gt;3&amp;gt;highsugbev. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be hisugbev&amp;gt;3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 01:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147108#M7745</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-18T01:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147109#M7746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so I did run proc freq and sweet=2 isn't even on the right hand side of the table...only 1,3,4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 01:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147109#M7746</guid>
      <dc:creator>newguy1580</dc:creator>
      <dc:date>2014-03-18T01:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147110#M7747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't get it...the coding for sweet=2 should work and it isn't like there are no observations in my dataset that don't fall under that condition, there definitely are. I checked all of that out earlier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 01:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147110#M7747</guid>
      <dc:creator>newguy1580</dc:creator>
      <dc:date>2014-03-18T01:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147111#M7748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, that's what I've got as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your variables are whole numbers, not decimals then 0 to 1 will never be coded because the boundaries aren't included. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 02:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147111#M7748</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-18T02:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147112#M7749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha yes you're right! I got parameter estimates for sweet=2,3,and 4. That is so strange though...SAS doesn't know that .5 is between 0 and 1? Thank you so much for pointing this out to me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 02:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147112#M7749</guid>
      <dc:creator>newguy1580</dc:creator>
      <dc:date>2014-03-18T02:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147113#M7750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, its my mistake, because at first glance they appear correct but I believe your boundaries are wrong, SAS does know how to categorize things properly. You should only have gt in the last condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; have;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;do&lt;/SPAN&gt; hisugbev=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;18&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;output&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;end&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; want;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;set&lt;/SPAN&gt; have;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt; hisugbev=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;then&lt;/SPAN&gt; sweet=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;lt;hisugbev&amp;lt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;then&lt;/SPAN&gt; sweet=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;lt;=hisugbev &amp;lt;=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;then&lt;/SPAN&gt; sweet=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt; hisugbev&amp;gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;then&lt;/SPAN&gt; sweet=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=want;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;table&lt;/SPAN&gt; hisugbev*sweet/&lt;SPAN style="color: #0433ff;"&gt;missing&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 02:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147113#M7750</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-18T02:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147114#M7751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup that's what I ended up doing when I changed my endpoints the only one I have gt for is in the last condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 02:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Parameter-estimates/m-p/147114#M7751</guid>
      <dc:creator>newguy1580</dc:creator>
      <dc:date>2014-03-18T02:49:40Z</dc:date>
    </item>
  </channel>
</rss>

