<?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: Lack of fit test in Proc Mixed? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177768#M9220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look at the change in the AIC or AICc between models.&amp;nbsp; For example, check out &lt;A href="http://en.wikipedia.org/wiki/Akaike_information_criterion"&gt;http://en.wikipedia.org/wiki/Akaike_information_criterion&lt;/A&gt;&amp;nbsp; and &lt;A href="http://en.wikipedia.org/wiki/Likelihood_function#Relative_likelihood"&gt;http://en.wikipedia.org/wiki/Likelihood_function#Relative_likelihood&lt;/A&gt; where the formula exp((AIC - AICmin)/2) [or replace AIC with AICc] gives the relative information loss.&amp;nbsp; In this case, look at the comparison of your model to the null model.&amp;nbsp; This will tell you how much of the information in the data is retained in your model.&amp;nbsp; I'm pretty sure a search through the Statistics forum will bring up another thread that covered this as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 14:37:31 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-05-30T14:37:31Z</dc:date>
    <item>
      <title>Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177767#M9219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best method for testing for lack of fit in models fit using Proc Mixed?&amp;nbsp; I'm running models testing effects of river reach, forest stand age, elevation above the river, and distance from the river on soils in riparian forests.&amp;nbsp; Samples were collected from plots located within distinct forest patches, arrayed along randomly located transects within each river reach, so I include patch nested within transect and transect nested within reach as random effects.&amp;nbsp; I've pasted the code below.&amp;nbsp; I'm running these models to assess the relative importance of stand age, elevation, and distance by comparing AICc scores among models that include different combinations of the variables.&amp;nbsp; I'd like to have a method to check whether the "best model" (i.e., the model with the lowest AICc) provides a good fit to the data.&amp;nbsp; Thanks in advance for any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Laura&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; soilN - age elev dist;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;mixed&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; reach transect patch;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; N=age elev dist reach / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;solution&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=kenwardroger;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; transect(reach) patch(transect*reach);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 20:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177767#M9219</guid>
      <dc:creator>LauraPerry</dc:creator>
      <dc:date>2014-05-29T20:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177768#M9220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look at the change in the AIC or AICc between models.&amp;nbsp; For example, check out &lt;A href="http://en.wikipedia.org/wiki/Akaike_information_criterion"&gt;http://en.wikipedia.org/wiki/Akaike_information_criterion&lt;/A&gt;&amp;nbsp; and &lt;A href="http://en.wikipedia.org/wiki/Likelihood_function#Relative_likelihood"&gt;http://en.wikipedia.org/wiki/Likelihood_function#Relative_likelihood&lt;/A&gt; where the formula exp((AIC - AICmin)/2) [or replace AIC with AICc] gives the relative information loss.&amp;nbsp; In this case, look at the comparison of your model to the null model.&amp;nbsp; This will tell you how much of the information in the data is retained in your model.&amp;nbsp; I'm pretty sure a search through the Statistics forum will bring up another thread that covered this as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 14:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177768#M9220</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-05-30T14:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177769#M9221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - this is helpful.&amp;nbsp; A question: what would be the null model in this case?&amp;nbsp; I don't know how to write proc mixed for a model with no independent variables in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177769#M9221</guid>
      <dc:creator>LauraPerry</dc:creator>
      <dc:date>2014-05-30T15:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177770#M9222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the random effects are design elements, I would leave them in and run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;mixed&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; reach transect patch;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; N= / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;solution&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=kenwardroger;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; transect(reach) patch(transect*reach);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 22px;"&gt; &lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177770#M9222</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-05-30T15:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177771#M9223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful. The default estimation method in MIXED is REML. That means, you can only compare AIC statistics for models with different random effects and the same fixed effects (the part in the model statement). If you want to compare models with different fixed effects, you will have to use method=ml in the procedure statement. Results could be a bit biased with small sample sizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The null model is easy, nothing before the slash.&lt;/P&gt;&lt;P&gt;model N = / solution ddfm = kr;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177771#M9223</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-05-30T15:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177772#M9224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Larry.&amp;nbsp; I forgot (AGAIN) that it had to be method=ML in PROC MIXED, and either method=laplace or method=quad in PROC GLIMMIX to look at fixed effect contributions to information criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 17:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177772#M9224</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-05-30T17:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lack of fit test in Proc Mixed?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177773#M9225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve and Larry.&amp;nbsp; The null model comparison seems to work well.&amp;nbsp; And you rescued me from a serious blunder with the REML/ML method.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 17:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lack-of-fit-test-in-Proc-Mixed/m-p/177773#M9225</guid>
      <dc:creator>LauraPerry</dc:creator>
      <dc:date>2014-05-30T17:28:37Z</dc:date>
    </item>
  </channel>
</rss>

