<?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: proc logistic question in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872278#M43131</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/394090"&gt;@wcw2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I ran this code and got "Variable xxx in list does not match type prescribed for this list"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Its a character variable, which you can't use in PROC SUMMARY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I did run a proc freq on all variables and nothing came up missing&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By default, PROC FREQ ignores missing values. You need to add the MISSING option. Please show us your code, and show us the output.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 14:55:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-04-26T14:55:49Z</dc:date>
    <item>
      <title>proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872254#M43124</link>
      <description>&lt;P&gt;I'm running a proc logistic model and getting the statement "NOTE: 27 observations were deleted due to missing values for the response or explanatory variables" yet none of my variables have missing values. Can someone tell me what's going on? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872254#M43124</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872264#M43125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/394090"&gt;@wcw2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm running a proc logistic model and getting the statement "NOTE: 27 observations were deleted due to missing values for the response or explanatory variables" yet none of my variables have missing values. Can someone tell me what's going on? Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Typically, when SAS says one thing and the user says the opposite, I believe SAS. Please run this code (appropriately modified with your data set name and with your variable names) and report the results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=yourdatasetname;
    var yourvariablenames;
    output out=nmiss nmiss=/autoname;
run;
proc print data=nmiss;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872264#M43125</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-26T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872268#M43126</link>
      <description>&lt;P&gt;I did run a proc freq on all variables and nothing came up missing&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872268#M43126</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872273#M43129</link>
      <description>&lt;P&gt;The best way to see how many observations are missing due to missing values on one or more variables involved in the model, list all variables specified in the procedure (response, predictors, weight, freq, offset, and so on) in the VAR statement of PROC MI step below. It provides a table that shows each pattern of missing values and the number of observations with that pattern.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select MissPattern;
proc mi data=&amp;lt;your_data&amp;gt; nimpute=0;
var &amp;lt;variables&amp;gt;;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872273#M43129</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-04-26T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872274#M43130</link>
      <description>&lt;P&gt;I ran this code and got "Variable xxx in list does not match type prescribed for this list"&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872274#M43130</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T14:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872278#M43131</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/394090"&gt;@wcw2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I ran this code and got "Variable xxx in list does not match type prescribed for this list"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Its a character variable, which you can't use in PROC SUMMARY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I did run a proc freq on all variables and nothing came up missing&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By default, PROC FREQ ignores missing values. You need to add the MISSING option. Please show us your code, and show us the output.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872278#M43131</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-26T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872279#M43132</link>
      <description>I'm guessing that Variable xxx is a character variable.</description>
      <pubDate>Wed, 26 Apr 2023 14:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872279#M43132</guid>
      <dc:creator>djmangen</dc:creator>
      <dc:date>2023-04-26T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872281#M43133</link>
      <description>&lt;P&gt;I did add /missing;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872281#M43133</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T15:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872283#M43134</link>
      <description>&lt;P&gt;I have mixtures of character and numeric&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872283#M43134</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T15:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872284#M43135</link>
      <description>&lt;P&gt;That PROC MI step is just for numeric variables. Try this instead:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add an OUTPUT statement to your LOGISTIC step to save the predicted values. In the resulting data set, the observations with either missing predicted value or missing response were not used. For example, these statements produce a data set, NotUsed, containing the observations there were not used. You can then print or view it to look for missing or invalid values that would cause each of them to be ignored.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class x1;
model y = x1 x2 x1*x2;
output out=Pred p=p;
run;
data NotUsed;
set Pred;
if cmiss(of p y);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872284#M43135</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-04-26T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872288#M43136</link>
      <description>&lt;P&gt;You have missing most likely. Show your results from the following, changing your input_dsn data set name (class) only&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*set input data set name;
%let INPUT_DSN = &lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/FONT&gt;;
%let OUTPUT_DSN = want;
*create format for missing;

proc format;
    value $ missfmt ' '="Missing" other="Not Missing";
    value nmissfmt .="Missing" other="Not Missing";
run;

*Proc freq to count missing/non missing;
ods select none;
*turns off the output so the results do not get too messy;
ods table onewayfreqs=temp;

proc freq data=&amp;amp;INPUT_DSN.;
    table _all_ / missing;
    format _numeric_ nmissfmt. _character_ $missfmt.;
run;

ods select all;
*Format output;

data long;
    length variable $32. variable_value $50.;
    set temp;
    Variable=scan(table, 2);
    Variable_Value=strip(trim(vvaluex(variable)));
    presentation=catt(frequency, " (", trim(put(percent/100, percent7.1)), ")");
    keep variable variable_value frequency percent cum: presentation;
    label variable='Variable' variable_value='Variable Value';
run;

proc sort data=long;
    by variable;
run;

*make it a wide data set for presentation, with values as N (Percent);

proc transpose data=long out=wide_presentation (drop=_name_);
    by variable;
    id variable_value;
    var presentation;
run;


title "Missing Report of &amp;amp;INPUT_DSN.";

proc print data=wide_presentation;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And please show the log from the proc logistic regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872288#M43136</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-04-26T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872289#M43137</link>
      <description>&lt;P&gt;ok thanks, I got "No observations in data set WORK.NOTUSED"&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872289#M43137</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872291#M43138</link>
      <description>Interesting... Please show the PROC LOGISTIC and DATA NotUsed steps you just ran that generated that message.</description>
      <pubDate>Wed, 26 Apr 2023 15:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872291#M43138</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-04-26T15:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872293#M43139</link>
      <description>&lt;P&gt;sorry, running SAS remotely and it's acting buggy&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872293#M43139</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T15:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872301#M43140</link>
      <description>&lt;P&gt;looks like I fixed it....my class statement had a bunch of unnecessary variables, so I removed them...didn't think it was not ok to put them there.....thanks all&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-question/m-p/872301#M43140</guid>
      <dc:creator>wcw2</dc:creator>
      <dc:date>2023-04-26T15:48:27Z</dc:date>
    </item>
  </channel>
</rss>

