<?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: Testing for Mean Differences in Seasons in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415340#M280119</link>
    <description>&lt;P&gt;You will most likely want to remove the year effect before looking at the season effect. Simple example where the year effect is considered random :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set sashelp.air;
season = qtr(date);
year = year(date);
run;

/* year as a random effect */
proc glimmix data=test plots=none;
class season year;
model air = season;
random year;
lsmeans season / pdiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Nov 2017 23:41:11 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-11-21T23:41:11Z</dc:date>
    <item>
      <title>Testing for Mean Differences in Seasons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415310#M280116</link>
      <description>&lt;P&gt;I have some data that is organized into seasons. I would like to test for significant differences between the seasons (spring summer fall winter). I can generate the means fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc sort data=tafsas.nav_data_all_ts;
	by season_name;

proc means data=tafsas.nav_data_all_ts noprint;
   var ovr_ecu;
   by season_name;
   where date&amp;gt;='01Jan2010'd;
   output out=meanstest mean=;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So I am not sure how to proceed from here.&amp;nbsp; Any advice is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415310#M280116</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2017-11-21T20:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Mean Differences in Seasons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415326#M280117</link>
      <description>&lt;P&gt;Mean what?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mean precipitation by season?&amp;nbsp; Mean number of births?&amp;nbsp; Mean number of earthquakes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a little bit more help on what data you might have, what they might represent, and what you might want to do would be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 22:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415326#M280117</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2017-11-21T22:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Mean Differences in Seasons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415335#M280118</link>
      <description>&lt;P&gt;You decide on the statistical test first, you don't calculate summary statistics either, the PROCS will handle that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at PROC ANOVA and GLM for starters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But...this data is circular/seasonal so make sure to correct for that first, I've recently seen some interesting radar charts and the concept of standardizing with sin/cosine functions. Radar charts are great for visualizing the data because it accounts for the fact that Summer is between Spring and Fall, whereas that's harder to view in other graphic types.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 22:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415335#M280118</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-21T22:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Mean Differences in Seasons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415340#M280119</link>
      <description>&lt;P&gt;You will most likely want to remove the year effect before looking at the season effect. Simple example where the year effect is considered random :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set sashelp.air;
season = qtr(date);
year = year(date);
run;

/* year as a random effect */
proc glimmix data=test plots=none;
class season year;
model air = season;
random year;
lsmeans season / pdiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2017 23:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415340#M280119</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-21T23:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Mean Differences in Seasons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415349#M280120</link>
      <description>&lt;P&gt;Thank you for all repsonding. This is airline costing data used at an air navigation service provider. It is monthly based. The data is monthly in frequency and is able to be grouped into seasons (spring, summer, fall, winter) based on month. I'd just like to see in 5-10 year chuncks (the chuncking can be done later) if the means of each season are significantly different from one another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like the suggestion to use proc glimmix is a good one. I had simply broken up the sample into groups and used t-tests, but it does not seem as elegant as proc glimmix above. Is glimmix the preferred method for this inquiry?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 00:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415349#M280120</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2017-11-22T00:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for Mean Differences in Seasons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415378#M280121</link>
      <description>&lt;P&gt;Check out the assumptions behind &lt;STRONG&gt;mixed linear models&lt;/STRONG&gt; and decide if&amp;nbsp;they are&amp;nbsp;appropriate for your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, &lt;STRONG&gt;proc glimmix&lt;/STRONG&gt;&amp;nbsp;might a bit overkill here, you could&amp;nbsp;just as well&amp;nbsp;use &lt;STRONG&gt;proc mixed&lt;/STRONG&gt;&amp;nbsp;if all random effects&amp;nbsp;can be&amp;nbsp;assumed to be normally distributed.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 05:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Testing-for-Mean-Differences-in-Seasons/m-p/415378#M280121</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-22T05:10:59Z</dc:date>
    </item>
  </channel>
</rss>

