<?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 Invalid Reference Value for Proc Logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937809#M46787</link>
    <description>&lt;P&gt;Hi everyone! Hopefully you guys can help me out! Below is the code I run! I was able to run this general code for other categories such as insurance status, smoking status, etc.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;proc logistic data=HHS.EPDS;
	class EPDS_Cat (ref="No");
	model guideline_levels (ref="None") = EPDS_Cat / link = glogit;
run;&lt;/PRE&gt;But I get this error message:&amp;nbsp;&lt;SPAN&gt;ERROR: Invalid reference value for EPDS_Cat. I'm trying to make the "No" as the reference group. Below is a table of the other categories.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;EPDS_Cat&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Frequency&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Percent&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Cumulative&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frequency&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Cumulative&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Percent&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;179&lt;/TD&gt;&lt;TD&gt;3.82&lt;/TD&gt;&lt;TD&gt;179&lt;/TD&gt;&lt;TD&gt;3.82&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;3896&lt;/TD&gt;&lt;TD&gt;83.19&lt;/TD&gt;&lt;TD&gt;4075&lt;/TD&gt;&lt;TD&gt;87.02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;608&lt;/TD&gt;&lt;TD&gt;12.98&lt;/TD&gt;&lt;TD&gt;4683&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 Jul 2024 18:23:38 GMT</pubDate>
    <dc:creator>chester2018</dc:creator>
    <dc:date>2024-07-31T18:23:38Z</dc:date>
    <item>
      <title>Invalid Reference Value for Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937809#M46787</link>
      <description>&lt;P&gt;Hi everyone! Hopefully you guys can help me out! Below is the code I run! I was able to run this general code for other categories such as insurance status, smoking status, etc.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;proc logistic data=HHS.EPDS;
	class EPDS_Cat (ref="No");
	model guideline_levels (ref="None") = EPDS_Cat / link = glogit;
run;&lt;/PRE&gt;But I get this error message:&amp;nbsp;&lt;SPAN&gt;ERROR: Invalid reference value for EPDS_Cat. I'm trying to make the "No" as the reference group. Below is a table of the other categories.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;EPDS_Cat&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Frequency&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Percent&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Cumulative&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frequency&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Cumulative&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Percent&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;179&lt;/TD&gt;&lt;TD&gt;3.82&lt;/TD&gt;&lt;TD&gt;179&lt;/TD&gt;&lt;TD&gt;3.82&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;3896&lt;/TD&gt;&lt;TD&gt;83.19&lt;/TD&gt;&lt;TD&gt;4075&lt;/TD&gt;&lt;TD&gt;87.02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;608&lt;/TD&gt;&lt;TD&gt;12.98&lt;/TD&gt;&lt;TD&gt;4683&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jul 2024 18:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937809#M46787</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2024-07-31T18:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Reference Value for Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937812#M46789</link>
      <description>&lt;P&gt;I suggest that you check the formatted value itself.&amp;nbsp; Likely there is a space after the o in "No".&amp;nbsp; It has to match exactly.&amp;nbsp; You could also just use the DESCENDING to get it to use that as the reference.&lt;/P&gt;
&lt;PRE&gt;class EPDS_Cat (descending);&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jul 2024 19:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937812#M46789</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2024-07-31T19:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Reference Value for Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937851#M46790</link>
      <description>I noticed your variable "EPDS_Cat" is numeric type.&lt;BR /&gt;Try using its original value like :  1 , 2</description>
      <pubDate>Thu, 01 Aug 2024 02:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937851#M46790</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-01T02:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Reference Value for Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937927#M46796</link>
      <description>&lt;P&gt;Thanks! I realized that SAS made this numeric, when it should've been categorical! I made a quick change and used the value "1" as the reference group!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937927#M46796</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2024-08-01T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Reference Value for Proc Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937959#M46797</link>
      <description>&lt;P&gt;Absolutely nothing wrong with numeric values for categorical variables. "Category" is a use, not a value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dichotomous 1/0 valued variables can be much easier to perform some tasks with than character valued (or some odd arbitrary other number pairs).&lt;/P&gt;
&lt;P&gt;Consider the SUM of 1/0 valued variable is the number of values=1.&lt;/P&gt;
&lt;P&gt;The Mean would be the percentage of 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 14:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Invalid-Reference-Value-for-Proc-Logistic/m-p/937959#M46797</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-01T14:30:15Z</dc:date>
    </item>
  </channel>
</rss>

