<?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: Missing predicted values using proc plm after proc logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/477744#M24879</link>
    <description>&lt;P&gt;Your checksafety data set is not being created correctly. You've specified 5-13 but then indented your data, so it actually starts at 9. So the region variable is truncated.&lt;STRIKE&gt; I'm assuming you used the code clean up button or CTRL+I and it did it automatically? If so, I would consider this a bug in SAS tbh. I'm going to add it as a suggestion for improvement actually.&amp;nbsp;&lt;BR /&gt;&lt;/STRIKE&gt;EDIT: That's wrong, the auto code formatting doesn't do that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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/189346"&gt;@amin1234&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=stat1.safety plots(only)=(effect oddsratio);
	class region (ref="Asia") size (ref="1")/ param=ref;
	model unsafe (event="1") = Weight Size Region;
	store out=issafe;
run;

data checkSafety;
   length Region $9.;
   input Weight Size Region $ 5-13;
   datalines;
   4 1 N America
   3 1 Asia     
   5 3 Asia     
   5 2 N America
	 ;
run;

proc plm restore=issafe;
	score data=checksafety out=safechecked / ilink;
run;

proc print data=safechecked;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hello Everyone, above is my code. I have attached the data set as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting missing values for the predicted values in the safechecked data set in proc plm.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any ideas why the predicted variables are missing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 01:28:58 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-07-13T01:28:58Z</dc:date>
    <item>
      <title>Missing predicted values using proc plm after proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/477726#M24878</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=stat1.safety plots(only)=(effect oddsratio);
	class region (ref="Asia") size (ref="1")/ param=ref;
	model unsafe (event="1") = Weight Size Region;
	store out=issafe;
run;

data checkSafety;
   length Region $9.;
   input Weight Size Region $ 5-13;
   datalines;
   4 1 N America
   3 1 Asia     
   5 3 Asia     
   5 2 N America
	 ;
run;

proc plm restore=issafe;
	score data=checksafety out=safechecked / ilink;
run;

proc print data=safechecked;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello Everyone, above is my code. I have attached the data set as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting missing values for the predicted values in the safechecked data set in proc plm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas why the predicted variables are missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 00:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/477726#M24878</guid>
      <dc:creator>amin1234</dc:creator>
      <dc:date>2018-07-13T00:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Missing predicted values using proc plm after proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/477744#M24879</link>
      <description>&lt;P&gt;Your checksafety data set is not being created correctly. You've specified 5-13 but then indented your data, so it actually starts at 9. So the region variable is truncated.&lt;STRIKE&gt; I'm assuming you used the code clean up button or CTRL+I and it did it automatically? If so, I would consider this a bug in SAS tbh. I'm going to add it as a suggestion for improvement actually.&amp;nbsp;&lt;BR /&gt;&lt;/STRIKE&gt;EDIT: That's wrong, the auto code formatting doesn't do that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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/189346"&gt;@amin1234&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=stat1.safety plots(only)=(effect oddsratio);
	class region (ref="Asia") size (ref="1")/ param=ref;
	model unsafe (event="1") = Weight Size Region;
	store out=issafe;
run;

data checkSafety;
   length Region $9.;
   input Weight Size Region $ 5-13;
   datalines;
   4 1 N America
   3 1 Asia     
   5 3 Asia     
   5 2 N America
	 ;
run;

proc plm restore=issafe;
	score data=checksafety out=safechecked / ilink;
run;

proc print data=safechecked;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hello Everyone, above is my code. I have attached the data set as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting missing values for the predicted values in the safechecked data set in proc plm.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any ideas why the predicted variables are missing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 01:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/477744#M24879</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-13T01:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing predicted values using proc plm after proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/478008#M24888</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thanks for your reply. I don't think it's the indentation. When the SELECTION= option is added to the model statement, the predicted values are not missing which is kind of strange.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 19:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/478008#M24888</guid>
      <dc:creator>amin1234</dc:creator>
      <dc:date>2018-07-13T19:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Missing predicted values using proc plm after proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/478011#M24889</link>
      <description>&lt;P&gt;Easy to check, check your input data set via proc print or opening it. That alone fixed it for me and as shown that data would read in correctly.&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/189346"&gt;@amin1234&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thanks for your reply. I don't think it's the indentation. When the SELECTION= option is added to the model statement, the predicted values are not missing which is kind of strange.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 19:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/478011#M24889</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-13T19:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Missing predicted values using proc plm after proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/478029#M24890</link>
      <description>&lt;P&gt;The easiest way to fix this is to tell the INPUT statement to read the REGION variable until two blanks or the end of line is found. This is what &amp;amp; does. So, change your INPUT statement to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   input Weight Size Region &amp;amp;;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jul 2018 20:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-predicted-values-using-proc-plm-after-proc-logistic/m-p/478029#M24890</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-07-13T20:21:51Z</dc:date>
    </item>
  </channel>
</rss>

