<?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 mixed, number of observations not used in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471663#M24619</link>
    <description>&lt;P&gt;In situations like this, it really helps to actually LOOK AT your data set named sasuser.data. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;See what SAS is seeing&lt;/STRONG&gt;&lt;/FONT&gt;. You can use VIEWTABLE (the preferred method) or PROC PRINT (less preferred).&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 12:38:51 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-06-20T12:38:51Z</dc:date>
    <item>
      <title>proc mixed, number of observations not used</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471523#M24616</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have a question about the "Number of observations not used"-information when using proc mixed.&lt;/P&gt;&lt;P&gt;I'm investigation the the effect of a drug on Diabetes in a randomized clinical trial. I have five measurements pr patient - week 4, 8, 12, 16 and 1 year and blood sugar as my endpoint.&lt;/P&gt;&lt;P&gt;Whem I'm running the proc mixed, it says that 130 out of 400 observations are NOT used. And even though I have 103 patients in my study, it seems to only use data from 75 patiens.&lt;/P&gt;&lt;P&gt;I do have some missing variables in my dataset. For instance, I'm adjusting for&amp;nbsp;how long each patient has had the diabetes diagnosis (in a covariate, I think), and when the patients dosn't know, I have entered ND. When I remove that covariate from the proc mixed, SAS seems to "notice" even more of my patients, as the 75 patients increase to 95.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does this mean? Is SAS only analyzing the blood sugar-numbers from the 75 patients? Or is it informing me that 75 of 103 patients have a complete dataset? Can I count on/belive the statistics?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have typed in SAS (where "treatment" is treatment with other types of medication that might influence bloodsugar and "years" is number of years with the diabetes diagnosis):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;mixed&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=sasuser.data; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; week&amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;patient week group(ref=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'B'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) gender treatment years;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bloodsugar= week group Group*week baseline_bloodsugar baseline_bloodsugar*week gender age baseline_bmi treatment&amp;nbsp;years /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cl&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ddfm&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=kr;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;lsmeans&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; group*week /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;repeated&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;week / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;subject&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=patient &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=un &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;r&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;rcorr&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really hope that you can help! Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 21:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471523#M24616</guid>
      <dc:creator>CamillaSvensson</dc:creator>
      <dc:date>2018-06-19T21:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed, number of observations not used</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471528#M24617</link>
      <description>&lt;P&gt;Any row that has a missing value in a variable included in a CLASS MODEL BY or similar statement is excluded.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One method to deal with this, if categorical, is to explicitly code the missing values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick way to check is to &lt;A href="https://gist.github.com/statgeek/2de1faf1644dc8160fe721056202f111" target="_self"&gt;run a missing report on your data.&lt;/A&gt;&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/83160"&gt;@CamillaSvensson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone&lt;/P&gt;
&lt;P&gt;I have a question about the "Number of observations not used"-information when using proc mixed.&lt;/P&gt;
&lt;P&gt;I'm investigation the the effect of a drug on Diabetes in a randomized clinical trial. I have five measurements pr patient - week 4, 8, 12, 16 and 1 year and blood sugar as my endpoint.&lt;/P&gt;
&lt;P&gt;Whem I'm running the proc mixed, it says that 130 out of 400 observations are NOT used. And even though I have 103 patients in my study, it seems to only use data from 75 patiens.&lt;/P&gt;
&lt;P&gt;I do have some missing variables in my dataset. For instance, I'm adjusting for&amp;nbsp;how long each patient has had the diabetes diagnosis (in a covariate, I think), and when the patients dosn't know, I have entered ND. When I remove that covariate from the proc mixed, SAS seems to "notice" even more of my patients, as the 75 patients increase to 95.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does this mean? Is SAS only analyzing the blood sugar-numbers from the 75 patients? Or is it informing me that 75 of 103 patients have a complete dataset? Can I count on/belive the statistics?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I have typed in SAS (where "treatment" is treatment with other types of medication that might influence bloodsugar and "years" is number of years with the diabetes diagnosis):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;mixed&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=sasuser.data; &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; week&amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;patient week group(ref=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'B'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) gender treatment years;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bloodsugar= week group Group*week baseline_bloodsugar baseline_bloodsugar*week gender age baseline_bmi treatment&amp;nbsp;years /&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;solution&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;cl&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ddfm&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=kr;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;lsmeans&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; group*week /&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;cl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;repeated&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;week / &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;subject&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=patient &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=un &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;r&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;rcorr&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really hope that you can help! Thank you in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 21:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471528#M24617</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-19T21:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed, number of observations not used</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471548#M24618</link>
      <description>&lt;P&gt;as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; says, find out where the data are missing. Maybe you can agree a method for handling the missing data with your clinical colleagues or maybe the data can be retrieved: the patient ought to know when they were diagnosed with diabetes, but perhaps they know the year but not the month and day, check these patients aren't falling out of the analysis, maybe you want to impute this as 15june etc, duration will necessarily be affected by rounding etc&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 22:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471548#M24618</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-19T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed, number of observations not used</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471663#M24619</link>
      <description>&lt;P&gt;In situations like this, it really helps to actually LOOK AT your data set named sasuser.data. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;See what SAS is seeing&lt;/STRONG&gt;&lt;/FONT&gt;. You can use VIEWTABLE (the preferred method) or PROC PRINT (less preferred).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-number-of-observations-not-used/m-p/471663#M24619</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-20T12:38:51Z</dc:date>
    </item>
  </channel>
</rss>

