<?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: Carryover effect problem in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108399#M5727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ODS OUTPUT statement allows you to write specific statistics from PROC LOGISTIC to a SAS data set, including the model fit statistics including the -2*log_likelihood.&amp;nbsp; You can concatenate these values for different values of the decay factor before selecting the decay factor with the smallest value of -2*log_likelihood.&amp;nbsp; Another analogous approach you might consider is to restructure your data from short and wide to long and narrow by transposing your SPD values and indexing them by week.&amp;nbsp; Since SPD_W3 follows SPD_W2 which follows SPD_W1, for the application I'm considering, you would have to index the most recent value of SPD [=SPD_W3] as week 1 and the earliest value of SPD [=SPD_W1] as week 3.&amp;nbsp; Then you could try PROC GLIMMIX for a repeated-measures logistic regression using week and subject ID in its RANDOM statement with a RESIDUAL option and a first-order autoregressive variance-covariance structure, AR(1).&amp;nbsp; The value of the autoregressive parameter, rho, would be equivalent to your decay factor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 13:32:12 GMT</pubDate>
    <dc:creator>1zmm</dc:creator>
    <dc:date>2013-08-14T13:32:12Z</dc:date>
    <item>
      <title>Carryover effect problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108397#M5725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always thank for your help doing my&lt;BR /&gt;research.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m having trouble with my SAS coding&lt;BR /&gt;today, any kind of your generous help or small advice would be grateful for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Briefly I have dataset as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="padding: 0px 4.95pt; margin-left: 4.2pt;" width="360"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0px 4.95pt; border: 1pt solid windowtext;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;Cus_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;Spd_w1&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;Spd_w2&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;Spd_w3&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;Death&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;10293&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;132&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;50&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;10234&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;45&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;22321&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;30&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;32&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;28&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;11224&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;19&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;67&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 4.95pt;" width="72"&gt;&lt;BR /&gt;&amp;nbsp; &lt;P align="center" style="text-align: center;"&gt;&lt;SPAN lang="EN-US" style="color: black; font-size: 11pt; mso-ascii-font-family: '맑은 고딕'; mso-fareast-font-family: '맑은 고딕'; mso-hansi-font-family: '맑은 고딕'; mso-bidi-font-family: 굴림; mso-font-kerning: 0pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cus_ID is customers’ individual ID and&lt;BR /&gt;Spd_w#s are weekly spending amount of each customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Death is status of customer after 3&lt;BR /&gt;weeks. (if death = 1 then it means customer is considered to be defected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to build a logistics&lt;BR /&gt;regression model for this, so IVs are Spd_w1, 2, 3 and DV is Death. But, as&lt;BR /&gt;there should be difference among weekly data in terms of importance because Week&lt;BR /&gt;1 shows the figure 2 weeks ago and Week 2 represents the figure 1 week ago, so&lt;BR /&gt;I want to add ‘Carryover effect’ on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I made new variable ‘SPD’ as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPD= (spd_w1)*(X**2) + (spd_w2)*(x) + (spd_w3) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X=decay parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, I’ll use proc logistics to find&lt;BR /&gt;whether this variable is significant or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, What really matters is to find the&lt;BR /&gt;optimal value for ‘decay parameter’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build a code like this and want to&lt;BR /&gt;optimize the value for ‘decay parameter’ by using macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%macro&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; optimization(&amp;amp;N)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;data customer; set original; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;decay=&amp;amp;N&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;Spd=Spd_w1*(decay**&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;) + spd_w2*(decay) + spd_w3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;proc logistic descending customer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;model Death=spd; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%mend&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.01&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.02&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.03&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.04&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.05&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.06&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; line-height: 115%; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;%&lt;STRONG&gt;&lt;EM&gt;optimization&lt;/EM&gt;&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; line-height: 115%; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;0.07&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; line-height: 115%; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; line-height: 115%; font-family: 'MS Sans Serif','sans-serif'; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: 굴림체; mso-fareast-font-family: 굴림체; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;…&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; line-height: 115%; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, the minimum -2LL figure&lt;BR /&gt;would be the most efficient way to make it optimize. But, I cannot check every&lt;BR /&gt;candidate figures manually one by one. It take too long time to check it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, How should I optimize this ‘decay&lt;BR /&gt;parameter’ figure by using macro? (Or not using macro)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be great help for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 08:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108397#M5725</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-08-12T08:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Carryover effect problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108398#M5726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, what seems to be important (given the sample data) is the change in spd values. Instead of fitting a nonlinear function, I suggest you try something simple first, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data spdChange;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set original;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;spdChange12 = spd_w2 - spd_w1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;spdChange23 = spd_w3 - spd_w2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc logistic data=spdChange;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;model death = spdChange12 spdChange23;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 17:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108398#M5726</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-08-12T17:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Carryover effect problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108399#M5727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ODS OUTPUT statement allows you to write specific statistics from PROC LOGISTIC to a SAS data set, including the model fit statistics including the -2*log_likelihood.&amp;nbsp; You can concatenate these values for different values of the decay factor before selecting the decay factor with the smallest value of -2*log_likelihood.&amp;nbsp; Another analogous approach you might consider is to restructure your data from short and wide to long and narrow by transposing your SPD values and indexing them by week.&amp;nbsp; Since SPD_W3 follows SPD_W2 which follows SPD_W1, for the application I'm considering, you would have to index the most recent value of SPD [=SPD_W3] as week 1 and the earliest value of SPD [=SPD_W1] as week 3.&amp;nbsp; Then you could try PROC GLIMMIX for a repeated-measures logistic regression using week and subject ID in its RANDOM statement with a RESIDUAL option and a first-order autoregressive variance-covariance structure, AR(1).&amp;nbsp; The value of the autoregressive parameter, rho, would be equivalent to your decay factor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 13:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108399#M5727</guid>
      <dc:creator>1zmm</dc:creator>
      <dc:date>2013-08-14T13:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Carryover effect problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108400#M5728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm almost the same, except that I would delete the RESIDUAL option, and fit the repeated factor as a G-side effect, choosing to view the mean proportions as conditional rather than marginal, especially as there are no other fixed effects to be considered.&amp;nbsp; I will allow that the marginal (RESIDUAL option) will probably have fewer convergence problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I just want to stay away from pseudo-likelihoods these days.&amp;nbsp; Quasi-likelihoods on the other hand are all right by me.&lt;/P&gt;&lt;P&gt;:smileylaugh:&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 17:58:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Carryover-effect-problem/m-p/108400#M5728</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-08-14T17:58:10Z</dc:date>
    </item>
  </channel>
</rss>

