<?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 proc glmselect for time series data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/383987#M19964</link>
    <description>&lt;P&gt;I just came accross this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://bmcvetres.biomedcentral.com/articles/10.1186/1746-6148-9-234" target="_self"&gt;Associations between Mycobacterium avium subsp. paratuberculosis antibodies in bulk tank milk, season of sampling and protocols for managing infected cows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the author transforms the time (in days) using sin(2*pi*(day/365)) or cos&lt;SPAN&gt;(2*pi*(day/365)). Is this an acceptable way to model seasonality when using&amp;nbsp;proc glmselect to model a dependent variable that depends on time and other factors (aka tim series prediction)?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jul 2017 14:45:45 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2017-07-29T14:45:45Z</dc:date>
    <item>
      <title>proc glmselect for time series data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/383987#M19964</link>
      <description>&lt;P&gt;I just came accross this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://bmcvetres.biomedcentral.com/articles/10.1186/1746-6148-9-234" target="_self"&gt;Associations between Mycobacterium avium subsp. paratuberculosis antibodies in bulk tank milk, season of sampling and protocols for managing infected cows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the author transforms the time (in days) using sin(2*pi*(day/365)) or cos&lt;SPAN&gt;(2*pi*(day/365)). Is this an acceptable way to model seasonality when using&amp;nbsp;proc glmselect to model a dependent variable that depends on time and other factors (aka tim series prediction)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 14:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/383987#M19964</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-07-29T14:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc glmselect for time series data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/384007#M19965</link>
      <description>&lt;P&gt;This may be better posted on stats.stackexchange.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is&amp;nbsp;more statistical than how to program something in SAS type question. There are statisticians on here and you may get an answer, but more likely to get a response on the forum mentioned above.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 20:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/384007#M19965</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-29T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc glmselect for time series data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/384456#M19994</link>
      <description>&lt;P&gt;In your example, &lt;EM&gt;DAY&lt;/EM&gt; is measured on a circular scale: &lt;EM&gt;DAY&lt;/EM&gt;&amp;nbsp;= 1 and &lt;EM&gt;DAY&lt;/EM&gt;&amp;nbsp;= 366 occupy the same position in an annual cycle.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;DAY&lt;/EM&gt; is converted into radian units by 2*pi*(&lt;EM&gt;DAY&lt;/EM&gt;/365). If we define the angle &lt;EM&gt;theta&amp;nbsp;&lt;/EM&gt;as&amp;nbsp;&lt;SPAN&gt;2*pi*(&lt;EM&gt;DAY&lt;/EM&gt;/365), then we convert from polar coordinates (assuming that radius = 1) to rectangular coordinates (x, y) as&amp;nbsp;&lt;/SPAN&gt;x = cos(&lt;EM&gt;theta&lt;/EM&gt;) and y = sin(&lt;EM&gt;theta&lt;/EM&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prediction of&amp;nbsp;a linear variable &lt;EM&gt;X&lt;/EM&gt; from a circular variable &lt;EM&gt;THETA&lt;/EM&gt; is known in the circular statistics area as "linear-circular association". From the text by N.I. Fisher&amp;nbsp;&lt;A title="Statistical Analysis of Circular Data" href="https://www.amazon.com/Statistical-Analysis-Circular-Data-Fisher/dp/0521568900" target="_self"&gt;https://www.amazon.com/Statistical-Analysis-Circular-Data-Fisher/dp/0521568900&lt;/A&gt;&amp;nbsp;(p 139):&lt;/P&gt;
&lt;P&gt;"In the linear-circular case, we focus on measuring association between &lt;EM&gt;X&lt;/EM&gt; and &lt;EM&gt;THETA&lt;/EM&gt; with a (possible) view to predicting the mean value of &lt;EM&gt;X&lt;/EM&gt; for a given value &lt;EM&gt;theta&lt;/EM&gt; of &lt;EM&gt;THETA&lt;/EM&gt;. A simple regression model for this type of association has the form ...&lt;/P&gt;
&lt;P&gt;E(&lt;EM&gt;X&amp;nbsp;&lt;/EM&gt;|&amp;nbsp;&lt;EM&gt;THETA&lt;/EM&gt; = &lt;EM&gt;theta) = a_&lt;/EM&gt;0&lt;EM&gt; + a &lt;/EM&gt;cos&lt;EM&gt;(theta)&lt;/EM&gt; +&amp;nbsp;&lt;EM&gt;b&amp;nbsp;&lt;/EM&gt;sin(&lt;EM&gt;theta&lt;/EM&gt;) .... it is a simple linear regression model (linear in the regression variables cos(&lt;EM&gt;theta&lt;/EM&gt;) and sin(&lt;EM&gt;theta&lt;/EM&gt;), that is) and can be fitted routinely by methods in any general statistical package, so we shall not discuss the regression aspect further."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see the use of sin/cos variables applied in ecology to variables like aspect (the continuous version of north-east-south-west). Notably aspect is different than time, and what works for aspect may not be appropriate for time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it could be an acceptable way. If you have many years of data, then time series analysis might be an alternative, perhaps better approach. The paper you reference has observations over only two years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 22:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/384456#M19994</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-31T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc glmselect for time series data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/384470#M19998</link>
      <description>&lt;P&gt;I've seen Dave Dickey (an expert in time series analysis) take the sine transform of time in his papers/talks. See&lt;/P&gt;
&lt;P&gt;the example in&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1275-2014.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings14/1275-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;He has a description similar to the one that&amp;nbsp;@sld gave in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi29/201-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/201-29.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 23:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glmselect-for-time-series-data/m-p/384470#M19998</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-31T23:40:45Z</dc:date>
    </item>
  </channel>
</rss>

