<?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: How to determine which subjects are excluded from PROC MIXED/GENMOD in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770178#M81036</link>
    <description>&lt;P&gt;Just search for missings among your X and Y variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the PROC to create an output data set that contains residual values. Any observation with missing values where the residual values should be was excluded from the analysis.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 10:10:31 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-09-24T10:10:31Z</dc:date>
    <item>
      <title>How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770081#M81035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am conducting analyses in Proc glimmix and Proc mixed that have random intercepts for subjects ("groups"), with the subject being labeled as ID. See my code below:&lt;/P&gt;&lt;P&gt;Proc glimmix:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc glimmix data=Data NOCLPRINT NOITPRINT METHOD= MSPL namelen=40;
CLASS id;
model caff(ref='0')=restdur_PMC restdur_PM / ODDSRATIO SOLUTION DIST=BINARY ddfm=bw;
RANDOM Intercept / TYPE=AR(1) Subject=id;run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Proc mixed:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc mixed data=data NOCLPRINT NOITPRINT COVTEST METHOD=ML namelen=40; 
CLASS id;
model rest_dur_hr = caff_binary_lag_PMC caff_binary_lag_persmean / SOLUTION CL ddfm=bw; 
RANDOM Intercept / TYPE=AR(1) Subject=id;run;  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have several subjects (that is, ID's) that are excluded from the analyses due to missing data. I would like to be able to produce output that shows exactly which ID's are excluded from each analysis in my dataset. Describing which cases have been excluded is needed for manuscripts. Thank you for any help you can give me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;confooseddesi89&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 00:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770081#M81035</guid>
      <dc:creator>confooseddesi89</dc:creator>
      <dc:date>2021-09-24T00:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770178#M81036</link>
      <description>&lt;P&gt;Just search for missings among your X and Y variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the PROC to create an output data set that contains residual values. Any observation with missing values where the residual values should be was excluded from the analysis.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 10:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770178#M81036</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-24T10:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770697#M81056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PROC GLIMMIX and MIXED procedures I used have a "where" clause that excludes IDs for which there are &amp;lt; 3 values for a variable called "caffeinated_beverages." I used the PROC in each analysis to output a dataset. I discovered there were some ID numbers that were excluded from the analyses that, according to PROC FREQ, had ≥3 values for "caffeinated_beverages", and I thought should not have been excluded. I looked closer and I realized that PROC FREQ was giving me incorrect numbers for the number of non-missing data values for "caffeinated_beverages", for select ID numbers. See below for the variable "caffeinated_beverages", id number "3" has only 2 values present, and one missing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="confooseddesi89_0-1632763110294.png" style="width: 226px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64120i467F4BDD6C7D0EE5/image-dimensions/226x87?v=v2" width="226" height="87" role="button" title="confooseddesi89_0-1632763110294.png" alt="confooseddesi89_0-1632763110294.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use PROC FREQ to show me the number of non-missing values per ID number, see below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=data; where caffeinated_beverages~=.;table id;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this is what I get for ID number 3 using PROC FREQ:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="confooseddesi89_1-1632763206877.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64121i8379D4DC2FD0B4AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="confooseddesi89_1-1632763206877.png" alt="confooseddesi89_1-1632763206877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a reason PROC FREQ could be giving me wrong numbers, assigning the missing value as present?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770697#M81056</guid>
      <dc:creator>confooseddesi89</dc:creator>
      <dc:date>2021-09-27T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770705#M81057</link>
      <description>&lt;P&gt;The data you show does not have a variable named ID. There are other discrepancies here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not possible to know what your screen captures from Excel really mean when converted into an actual SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide a portion of the &lt;FONT color="#FF0000"&gt;actual SAS data set&lt;/FONT&gt; you are using as SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;). Do not attach files. Do not provide screen captures. Follow the instructions.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770705#M81057</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-27T17:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770713#M81060</link>
      <description>&lt;DIV class="lia-spoiler-content"&gt;It's pretty clear that idnum is ID. You can understand what I'm asking with the information provided. Thanks for your lack of help.&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770713#M81060</guid>
      <dc:creator>confooseddesi89</dc:creator>
      <dc:date>2021-09-27T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770722#M81061</link>
      <description>&lt;P&gt;No, I can't understand the problem from the information provided. Converting Excel to SAS sometimes produces unexpected results. So in order to know what is causing SAS to do what it is doing, I need to see the SAS data set, not screen captures from Excel.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/770722#M81061</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-27T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/771630#M81066</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/275602"&gt;@confooseddesi89&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a reason PROC FREQ could be giving me wrong numbers, assigning the missing value as present?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Possible reasons - your data import was wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the 3 is in the middle of the column as the screenshot shows that actually indicates that the values is NOT numeric. Numeric values are aligned by default in output from SAS.&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/275602"&gt;@confooseddesi89&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="confooseddesi89_1-1632763206877.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64121i8379D4DC2FD0B4AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="confooseddesi89_1-1632763206877.png" alt="confooseddesi89_1-1632763206877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there a reason PROC FREQ could be giving me wrong numbers, assigning the missing value as present?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 17:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/771630#M81066</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-01T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine which subjects are excluded from PROC MIXED/GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/771639#M81067</link>
      <description>&lt;P&gt;Hi Reeza! Thanks for helping me out. The variable is numeric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reran the numbers and the freqs are correct now. I'm not sure what the original error was - why I got the wrong freqs - but at least it's correct now. Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 18:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-determine-which-subjects-are-excluded-from-PROC-MIXED/m-p/771639#M81067</guid>
      <dc:creator>confooseddesi89</dc:creator>
      <dc:date>2021-10-01T18:30:12Z</dc:date>
    </item>
  </channel>
</rss>

