<?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: Data Missing on output. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434514#M68898</link>
    <description>&lt;PRE&gt;class cd4_levels /param=glm ;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Feb 2018 12:26:24 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-02-06T12:26:24Z</dc:date>
    <item>
      <title>Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434448#M68891</link>
      <description>&lt;PRE&gt;Data UGAStudent_DATA;
Set date_difference; 

if cd4 &amp;lt;= '200' then cd4_levels='1';
if cd4 &amp;gt;='201' &amp;lt;='500' then cd4_levels='2';
if cd4 &amp;gt; '500' then cd4_levels='3'; 
run;

proc genmod data= ugastudent_data ;
class cd4_levels ;
model Factor3 = cd4_levels n_Duration_on_ART_months ; 
run;

&lt;/PRE&gt;&lt;P&gt;I'm trying to run the proc genmod command, but when I look at level 3, it has 0s across the board but levels 1 and 2 have values. How do I get my level 3 data to show up? Its like the data is missing or something&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-05 at 9.13.14 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18349i8284DB980C2E2084/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-05 at 9.13.14 PM.png" alt="Screen Shot 2018-02-05 at 9.13.14 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 02:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434448#M68891</guid>
      <dc:creator>UGAstudent</dc:creator>
      <dc:date>2018-02-06T02:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434452#M68892</link>
      <description>&lt;P&gt;That's the correct results for a categorical&amp;nbsp;variable, only N-1 levels will have estimates. If you have 3 levels, you only need two variables to identify the third, so you only have estimates for two variables. Review dummy variables and the degrees of freedom in your statistics textbook.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In matrix language, they would be linear combinations of each other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use different dummy coding, but it depends on what you're trying to test.&amp;nbsp;&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/149337"&gt;@UGAstudent&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;Data UGAStudent_DATA;
Set date_difference; 

if cd4 &amp;lt;= '200' then cd4_levels='1';
if cd4 &amp;gt;='201' &amp;lt;='500' then cd4_levels='2';
if cd4 &amp;gt; '500' then cd4_levels='3'; 
run;

proc genmod data= ugastudent_data ;
class cd4_levels ;
model Factor3 = cd4_levels n_Duration_on_ART_months ; 
run;

&lt;/PRE&gt;
&lt;P&gt;I'm trying to run the proc genmod command, but when I look at level 3, it has 0s across the board but levels 1 and 2 have values. How do I get my level 3 data to show up? Its like the data is missing or something&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-05 at 9.13.14 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18349i8284DB980C2E2084/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-05 at 9.13.14 PM.png" alt="Screen Shot 2018-02-05 at 9.13.14 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 02:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434452#M68892</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-06T02:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434453#M68893</link>
      <description>&lt;P&gt;Another issue to consider ... is CD4 numeric or character?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If CD4 is numeric, there should not be quotes around '200' and '201' and '500'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If CD4 is character, the comparisons you are asking for may be different than what you expect.&amp;nbsp; As character strings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'51' and '60' are both greater than '500'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'1000' is less than '200'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't tell what is in your data, but I can tell that these comparisons are suspect.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 02:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434453#M68893</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-06T02:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434514#M68898</link>
      <description>&lt;PRE&gt;class cd4_levels /param=glm ;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434514#M68898</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-02-06T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434537#M68903</link>
      <description>Hi,&lt;BR /&gt;CD4 is numerical (as in HIV CD4 count). I removed the quotations around the 200, 201, and 500, and everything seems to work alright. I know how to create a dummy variable for a logistical regression, but I’m not sure if its the same process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again !&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2018 14:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434537#M68903</guid>
      <dc:creator>UGAstudent</dc:creator>
      <dc:date>2018-02-06T14:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434682#M68913</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-left lia-quilt-column-main-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-author lia-component-author"&gt;&lt;DIV class="lia-message-author-post-count"&gt;&lt;BR /&gt;CD4 is numerical (as in HIV CD4 count). I removed the quotations around the 200, 201, and 500, and everything seems to work alright. I know how to create a dummy variable for a logistical regression, but I’m not sure if its the same process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again !&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2018 20:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434682#M68913</guid>
      <dc:creator>UGAstudent</dc:creator>
      <dc:date>2018-02-06T20:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434693#M68914</link>
      <description>If your question is answered please mark it as solved.</description>
      <pubDate>Tue, 06 Feb 2018 21:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434693#M68914</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-06T21:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434863#M68921</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hi Reeza,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CD4 is numerical (as in HIV CD4 count). I removed the quotations around the 200, 201, and 500, and everything seems to work alright. I know how to create a dummy variable for a logistical regression, but I’m not sure if its the same process for this&amp;nbsp;command.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434863#M68921</guid>
      <dc:creator>UGAstudent</dc:creator>
      <dc:date>2018-02-07T14:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434905#M68924</link>
      <description>&lt;P&gt;When you include a CLASS statement it automatically creates the dummy variables. But how the dummy variables are created varies. IN PROC LOGISTIC you have more control than in PROC GLM so you may be better off creating them manually. Check the docs on the CLASS statement for the options to set the method for creating a dummy variable.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 15:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434905#M68924</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-07T15:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing on output.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434932#M68927</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi I've looked through the class and proc statements online information and tried to look up some things regarding dummy variables but I was not able to find a conclusion. Im not sure what the code should look like so I could start having information show up in the 3rd level created. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data UGAStudent_DATA;
Set date_difference; 

if cd4 &amp;lt;= 200 then cd4_levels='1';
if cd4 &amp;gt;=201 &amp;lt;=500 then cd4_levels='2';
if cd4 &amp;gt; 500 then cd4_levels='3'; 
run;

proc genmod data= ugastudent_data;
class cd4_levels /param=glm ;
model  Factor1 =  cd4_levels n_Duration_on_ART_months ;  
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Feb 2018 16:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434932#M68927</guid>
      <dc:creator>UGAstudent</dc:creator>
      <dc:date>2018-02-07T16:15:59Z</dc:date>
    </item>
  </channel>
</rss>

