<?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 values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685213#M32994</link>
    <description>&lt;P&gt;Code? or better log entry to show what you are doing. Copy the log of all the steps you are concerned with including the code and all messages, notes or warnings and paste into a code box opened on the forum to maintain legibility and preserve formatting of any diagnostic information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not enough detail to tell what you are attempting or which tools may help.&lt;/P&gt;
&lt;P&gt;Many of the modeling procedures that use categorical variables have a CLASS statement and you can usually specify that missing is a valid level for those.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Sep 2020 18:53:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-09-19T18:53:13Z</dc:date>
    <item>
      <title>missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685204#M32993</link>
      <description>&lt;P&gt;Hi everyone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if I have understood a problem correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have missing values in my predictor and outcome. I have even more missing in control variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS only excludes variables included in step so in the first step (predictor/outcome) the ones with missing values on control variables are included. Then in next step (Predictor+Control/Outcome) SAS excludes more variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect this is wrong procedure, and I have to exclude/impute all observations with missing values prior to any regression steps?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2020 17:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685204#M32993</guid>
      <dc:creator>mintbit</dc:creator>
      <dc:date>2020-09-19T17:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685213#M32994</link>
      <description>&lt;P&gt;Code? or better log entry to show what you are doing. Copy the log of all the steps you are concerned with including the code and all messages, notes or warnings and paste into a code box opened on the forum to maintain legibility and preserve formatting of any diagnostic information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not enough detail to tell what you are attempting or which tools may help.&lt;/P&gt;
&lt;P&gt;Many of the modeling procedures that use categorical variables have a CLASS statement and you can usually specify that missing is a valid level for those.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2020 18:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685213#M32994</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-19T18:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685217#M32997</link>
      <description>Sorry for beeing imprecise. I'll try to explaing more in detail. &lt;BR /&gt;Step1: My main analysis including predictors and outcome have 150 missing cases wich I have deleted and then run regression. &lt;BR /&gt;Step 2: The next step wich includes a confounder has additionally 200 missing cases. Now, I want to exclude these as well, and the program does so automatically. &lt;BR /&gt;&lt;BR /&gt;My question is it wrong to do step 1 with more cases than step 2, or should I exclude cases with missing confounder before doing Step1?</description>
      <pubDate>Sat, 19 Sep 2020 19:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685217#M32997</guid>
      <dc:creator>mintbit</dc:creator>
      <dc:date>2020-09-19T19:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685221#M32998</link>
      <description>There was a very specific and clear request for you to show us your code.</description>
      <pubDate>Sat, 19 Sep 2020 20:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685221#M32998</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-19T20:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685234#M32999</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         
 72         title "Step 1";
 73         proc logistic data=u.mf plots (only)= (effect oddsratio);
 74         class ses (ref='1') kjønn klasse /param=ref;
 75         model &amp;amp;dep(event='1')=&amp;amp;v/ clodds=pl;
 76         run;
 
 NOTE: PROC LOGISTIC is modeling the probability that akt_med=1.
 NOTE: Convergence criterion (GCONV=1E-8) satisfied.
 NOTE: There were 3463 observations read from the data set U.MF.
 NOTE: PROCEDURE LOGISTIC used (Total process time):
       real time           0.43 seconds
       user cpu time       0.28 seconds
       system cpu time     0.03 seconds
       memory              22273.12k
       OS Memory           50544.00k
       Timestamp           19.09.2020 10:43:41 PM
       Step Count                        91  Switch Count  6
       Page Faults                       0
       Page Reclaims                     4889
       Page Swaps                        0
       Voluntary Context Switches        540
       Involuntary Context Switches      1
       Block Input Operations            0
       Block Output Operations           1064
       
 
 77         
 78         
 79         title "Step 2";
 80         proc logistic data=u.mf plots (only)= (effect oddsratio);
 81         class ses (ref='1') kjønn klasse
 82         nærtilb2 nærtilb3  /param=ref;
 83         model &amp;amp;dep(event='1')=&amp;amp;v nærtilb2 nærtilb3/ clodds=pl ;
 84         run;
 
 NOTE: PROC LOGISTIC is modeling the probability that akt_med=1.
 NOTE: Convergence criterion (GCONV=1E-8) satisfied.
 NOTE: There were 3463 observations read from the data set U.MF.
 NOTE: PROCEDURE LOGISTIC used (Total process time):
       real time           0.49 seconds
       user cpu time       0.35 seconds
       system cpu time     0.02 seconds
       memory              8719.37k
       OS Memory           52268.00k
       Timestamp           19.09.2020 10:43:41 PM
       Step Count                        92  Switch Count  6
       Page Faults                       0
       Page Reclaims                     1406
       Page Swaps                        0
       Voluntary Context Switches        571
       Involuntary Context Switches      1
       Block Input Operations            0
       Block Output Operations           768
       
 
 85         
 86         
 87         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 98         &lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
title "Step 1"; 
proc logistic data=u.mf plots (only)= (effect oddsratio); 
	class ses (ref='1') kjønn klasse /param=ref; 
	model &amp;amp;dep(event='1')=&amp;amp;v/ clodds=pl; 
run; 
 
 
title "Step 2"; 
proc logistic data=u.mf plots (only)= (effect oddsratio); 
	class ses (ref='1') kjønn klasse  
	nærtilb2 nærtilb3  /param=ref; 
	model &amp;amp;dep(event='1')=&amp;amp;v nærtilb2 nærtilb3/ clodds=pl ; 
run; 
 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Sep 2020 22:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685234#M32999</guid>
      <dc:creator>mintbit</dc:creator>
      <dc:date>2020-09-19T22:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685264#M33007</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/318282"&gt;@mintbit&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if I have understood a problem correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have missing values in my predictor and outcome. I have even more missing in control variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS only excludes variables included in step so in the first step (predictor/outcome) the ones with missing values on control variables are included. Then in next step (Predictor+Control/Outcome) SAS excludes more variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect this is wrong procedure, and I have to exclude/impute all observations with missing values prior to any regression steps?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I do not understand why this is being done via two sequential logistic regressions. What do you gain from doing this as two separate regressions, instead of one combined regression? What does the first one tell you?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 11:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685264#M33007</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-20T11:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685265#M33008</link>
      <description>I wanted to look at the effect with and without the confounder. Also for model selection.</description>
      <pubDate>Sun, 20 Sep 2020 12:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685265#M33008</guid>
      <dc:creator>mintbit</dc:creator>
      <dc:date>2020-09-20T12:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685266#M33009</link>
      <description>&lt;P&gt;I think any comparison of models or comparison of coefficients has to be done on the same data, so it would be the data with all missings (predictors and confounders) removed.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 13:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685266#M33009</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-20T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685267#M33010</link>
      <description>&lt;P&gt;Thank you for helping me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 13:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/missing-values/m-p/685267#M33010</guid>
      <dc:creator>mintbit</dc:creator>
      <dc:date>2020-09-20T13:09:03Z</dc:date>
    </item>
  </channel>
</rss>

