<?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 GLIMMIX choosing the appropriate covariance structure for spatial data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/545479#M27292</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm conducting a regression using PROC GLIMMIX and I'm unsure which covariance structure I should use. I'm looking at school level data that are nested in cities that are nested in metropolitan areas, but I am currently using fixed effects for the metropolitan areas.&amp;nbsp;My dependent variable is a percentage outcome, so I use the beta distribution with a logit link. I have nearly 17,000 schools and some cities have as many as 400 schools (e.g., New York City). I think because of computational issues I'm having convergence issues. The only way the convergence criterion is satisfied thus far is when I use TYPE=VC. I've also made the ID variables for cities numeric (city_code_numeric), which I think makes the program more efficient. I would appreciate any guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=dat1 empirical;
	class metro_area;
	model school_percent = 

		school_var1
		school_var2
		school_var3
		school_var4
		school_var5

		city_var1
		city_var2
		city_var3
		city_var4
		city_var5

		metro_area

		/ dist = beta link = logit solution ddfm=BW ;
	random _residual_/ subject=city_code_numeric type=VC solution;
	ods output ParameterEstimates=parms;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 23 Mar 2019 13:39:32 GMT</pubDate>
    <dc:creator>AXR</dc:creator>
    <dc:date>2019-03-23T13:39:32Z</dc:date>
    <item>
      <title>GLIMMIX choosing the appropriate covariance structure for spatial data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/545479#M27292</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm conducting a regression using PROC GLIMMIX and I'm unsure which covariance structure I should use. I'm looking at school level data that are nested in cities that are nested in metropolitan areas, but I am currently using fixed effects for the metropolitan areas.&amp;nbsp;My dependent variable is a percentage outcome, so I use the beta distribution with a logit link. I have nearly 17,000 schools and some cities have as many as 400 schools (e.g., New York City). I think because of computational issues I'm having convergence issues. The only way the convergence criterion is satisfied thus far is when I use TYPE=VC. I've also made the ID variables for cities numeric (city_code_numeric), which I think makes the program more efficient. I would appreciate any guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=dat1 empirical;
	class metro_area;
	model school_percent = 

		school_var1
		school_var2
		school_var3
		school_var4
		school_var5

		city_var1
		city_var2
		city_var3
		city_var4
		city_var5

		metro_area

		/ dist = beta link = logit solution ddfm=BW ;
	random _residual_/ subject=city_code_numeric type=VC solution;
	ods output ParameterEstimates=parms;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Mar 2019 13:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/545479#M27292</guid>
      <dc:creator>AXR</dc:creator>
      <dc:date>2019-03-23T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX choosing the appropriate covariance structure for spatial data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546092#M27302</link>
      <description>&lt;P&gt;Did TYPE=CS not converge?&amp;nbsp; That's the next simplest covariance structure you can apply&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 12:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546092#M27302</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2019-03-26T12:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX choosing the appropriate covariance structure for spatial data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546128#M27303</link>
      <description>&lt;P&gt;Unfortunately, TYPE=CS did not converge...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 13:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546128#M27303</guid>
      <dc:creator>AXR</dc:creator>
      <dc:date>2019-03-26T13:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX choosing the appropriate covariance structure for spatial data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546145#M27304</link>
      <description>&lt;P&gt;Is the convergence history well-behaved?&amp;nbsp; Is the convergence criteria steadily decreasing or bouncing around?&amp;nbsp; If the convergence criteria is moving towards convergence, then try adding NLOPTIONS TECH=NRRIDG;&amp;nbsp; (i don't think that's the default for your analysis and it is a slightly more robust optimization method).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the convergence history is bouncing around, then you may need to simplify the fixed effects.&amp;nbsp; Mixed models work best when starting small and adding factors to the model.&amp;nbsp; When the model finally does not converge, that could be telling you that model does not do a good job with your data.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 13:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546145#M27304</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2019-03-26T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX choosing the appropriate covariance structure for spatial data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546207#M27309</link>
      <description>&lt;P&gt;Hi again, the &lt;SPAN&gt;NLOPTIONS TECH=NRRIDG statement helped! The regression seems to be converging regardless of the fixed effects when I use TYPE=VC. My full model also converged when I used TYPE=CS. My next question is then, are there more sophisticated covariance structures that I should try? and then, when using the empirical option, to what degree does the choice of covariance structure matter?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 15:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-choosing-the-appropriate-covariance-structure-for/m-p/546207#M27309</guid>
      <dc:creator>AXR</dc:creator>
      <dc:date>2019-03-26T15:34:19Z</dc:date>
    </item>
  </channel>
</rss>

