<?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 How do I contrast data using proc mixed for correlated data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489676#M25440</link>
    <description>&lt;P&gt;I am trying to use proc mixed to analyze correlated data. Specifically, I am trying to assess whether mean number of pills prescribed&amp;nbsp;changed over a 5 year&amp;nbsp;time&amp;nbsp;period, by provider.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;I get a p value for the model&amp;nbsp; but I am trying to contrast the different years and the contasts keep coming up with empty fields.&lt;/P&gt;&lt;P&gt;2. Additionally, I am getting a message that says 'Invalid or missing data' and I am unsure what this refers to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any assistance. Thanks!&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;=gs;&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; surgeon year(ref=first);&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; pillnum = year/ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;s&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; / &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;=surgeon &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;=cs &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 face="Courier New" size="2"&gt;contrast 'year 2 vs 3-5' year 2 -2;&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;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Aug 2018 16:26:25 GMT</pubDate>
    <dc:creator>tbn1</dc:creator>
    <dc:date>2018-08-24T16:26:25Z</dc:date>
    <item>
      <title>How do I contrast data using proc mixed for correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489676#M25440</link>
      <description>&lt;P&gt;I am trying to use proc mixed to analyze correlated data. Specifically, I am trying to assess whether mean number of pills prescribed&amp;nbsp;changed over a 5 year&amp;nbsp;time&amp;nbsp;period, by provider.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;I get a p value for the model&amp;nbsp; but I am trying to contrast the different years and the contasts keep coming up with empty fields.&lt;/P&gt;&lt;P&gt;2. Additionally, I am getting a message that says 'Invalid or missing data' and I am unsure what this refers to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any assistance. Thanks!&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;=gs;&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; surgeon year(ref=first);&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; pillnum = year/ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;s&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; / &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;=surgeon &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;=cs &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 face="Courier New" size="2"&gt;contrast 'year 2 vs 3-5' year 2 -2;&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;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489676#M25440</guid>
      <dc:creator>tbn1</dc:creator>
      <dc:date>2018-08-24T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I contrast data using proc mixed for correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489710#M25441</link>
      <description>&lt;P&gt;Your CONTRAST statement does not do what you want. See&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/351-2011.pdf" target="_self"&gt;CONTRAST and ESTIMATE Statements Made Easy: The LSMESTIMATE Statement &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/447.html" target="_self"&gt;Examples of Writing CONTRAST and ESTIMATE Statements&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then follow up if you still have trouble.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We would have to see your data to know why you are getting "Invalid or missing data". Or speculate wildly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend adding&amp;nbsp;&amp;lt;&lt;EM&gt;repeated-effect&lt;/EM&gt;&amp;gt; to the REPEATED statement. See&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect019.htm" target="_self"&gt;the documentation for MIXED | REPEATED&lt;/A&gt;&amp;nbsp;It might help resolve your error message, more or less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 17:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489710#M25441</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-08-24T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I contrast data using proc mixed for correlated data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489786#M25443</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221997"&gt;@tbn1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;2. Additionally, I am getting a message that says 'Invalid or missing data' and I am unsure what this refers to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When getting error or warning messages it is best to copy the code and messages from the log. Paste into a code box opened using the forum's {I} icon. Many messages have diagnostics but the message windows on this forum will reformat text making any of the diagnostic characters less useful. The code box does a much better job maintaining the log. Including the actually submitted code from the log clears up any potential questions about possible typos or options chosen.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 22:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-contrast-data-using-proc-mixed-for-correlated-data/m-p/489786#M25443</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-24T22:56:33Z</dc:date>
    </item>
  </channel>
</rss>

