<?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: PROC Mixed treatment effect percentage change in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763938#M37284</link>
    <description>&lt;P&gt;Here is how I would approach this.&amp;nbsp; There are two levels of group (say A and B) and two levels of time (t0 and t+2). I would use PROC MIXED as you have correlated responses. Follow this up with a post-analysis processing to get the percent change.&amp;nbsp; Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=have;
class group time subject; /* subject is a member of one of the levels of group */
model response = group time group*time;
repeated time/type=un subject=subject;
lsmestimate group*time 'Baseline Group A' 1 0 0 0;
lsmestimate group*time 'Baseline Group B' 0 0 1 0;
lsmestimate group*time 'Difference over time for Group A' 1 -1 0 0;
lsmestimate group*time 'Difference over time for Group B' 0 0 1 -1;&lt;BR /&gt;lsmestimate group*time 'Difference between groups over time (B - A)' -1 1 1 -1;
ods output  lsmestimates=lsmestimates;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can calculate the percent change in each group by dividing the difference over time by the baseline for that group.&amp;nbsp; The p value from the last lsmestimate would apply to the difference in group changes. No place along here would there be an analysis of percent change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I strongly recommend against analyzing the percent changes as a response variable.&amp;nbsp; See Harrell's&amp;nbsp;&lt;EM&gt;Applied Regression Strategies&lt;/EM&gt; or the website run by the Vanderbilt University biostats department &lt;A href="https://discourse.datamethods.org/t/author-checklist/3407" target="_self"&gt;https://discourse.datamethods.org/t/author-checklist/3407&lt;/A&gt;&amp;nbsp;.&amp;nbsp; In particular, see this webpage:&amp;nbsp;&amp;nbsp;&lt;A href="http://hbiostat.org/bbr/md/change.html#sec:changegen" target="_self"&gt;http://hbiostat.org/bbr/md/change.html#sec:changegen&lt;/A&gt;&amp;nbsp; for the many caveats on analyzing change scores.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 17:57:57 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-08-25T17:57:57Z</dc:date>
    <item>
      <title>PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729065#M35352</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am running a treatment effect longitudinal analysis with the outcome being a log transformed value collected over 5 days.&lt;/P&gt;&lt;P&gt;My covariates are time and treatment group (intervention vs. control) and their interaction (treatment*time).&lt;/P&gt;&lt;P&gt;The aim of the analysis is to determine if there is a treatment effect in favour of the intervention but expressed as a percentage change.&lt;/P&gt;&lt;P&gt;I have fitted my model assuming a fixed effect for time, treatment group and their interaction with a random intercept.&lt;/P&gt;&lt;P&gt;proc mixed; class treatment; model outcome= time time*treatment / s; random intercept/subject=ID; run;&lt;/P&gt;&lt;P&gt;Could someone point me to literature or example that illustrates how the treatment effect is determined as a percentage? Or an example if any?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kennedy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 14:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729065#M35352</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-25T14:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729348#M35355</link>
      <description>&lt;P&gt;I can think of two ways, but neither is done entirely within PROC MIXED.&amp;nbsp; I'll list them in order of probable appropriateness.&lt;/P&gt;
&lt;P&gt;Method 1: Get the lsmeans and differences into datasets, merge them and post process it, dividing the difference from pretreatment for each post treatment time lsmean by the pretreatment time lsmean and multiply by 100.&lt;/P&gt;
&lt;P&gt;Method 2: Shift to PROC GLIMMIX, use a log link.&amp;nbsp; The differences will be ratios which are "fold" changes.&amp;nbsp; From there convert to percentage changes by calculating pct_change = 100* (diff in lsmeans -1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you should NOT do is divide the values by each pretreatment value and analyze the ratios as if they were normal.&amp;nbsp; This ignores all covariance within subject, plus ratios of variables with normal errors generally do not have normal errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 11:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729348#M35355</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-03-26T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729379#M35356</link>
      <description>&lt;P&gt;It looks to me that your response variable is a log-transformed variable. The percent difference in lsmeans that you want would be on the logged scale, correct?&lt;/P&gt;
&lt;P&gt;Like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;pointed out, you can save the LSMEANS results (using an ODS OUTPUT statement) and use SAS data steps to compute the percent difference in lsmeans. However, this will not give you standard errors / p-values / confidence intervals. If you also wanted to make inferences on the percentage, you might consider using PROC NLMIXED to fit your model, and use the ESTIMATE statement in PROC NLMIXED to compute the percent difference. The ESTIMATE statement would produce the p-value and 95% confidence interval for you on the estimate (which is the percent difference).&lt;/P&gt;
&lt;P&gt;For method 2 suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;, I assume he wanted you to use the Log link on your log-transformed variable? I just wanted to point out that these two methods will not give you the same model. Also, Steve might mean pct_change = 100* (exp(diff in lsmeans) -1) rather than pct_change = 100* (diff in lsmeans -1). Please correct me if I am wrong&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729379#M35356</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-03-26T14:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729474#M35357</link>
      <description>Thank you very much Steve.&lt;BR /&gt;I will work to implement this approach and see what I get.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729474#M35357</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-26T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729475#M35358</link>
      <description>Thank you Jiltao.&lt;BR /&gt;I will look for PROC NLMIXED references that specifically address the percentage change.&lt;BR /&gt;This is definitely helpful.&lt;BR /&gt;I really thank you both.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729475#M35358</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-26T19:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729476#M35359</link>
      <description>Yes my response variable is log transformed.</description>
      <pubDate>Fri, 26 Mar 2021 19:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729476#M35359</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-26T19:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729497#M35360</link>
      <description>Hi Jil,&lt;BR /&gt;I have run the approach proposed by Steve Denham. I was wondering if you could point me to a reference for NLMIXED that has done something similar so I can compare findings from both methods.&lt;BR /&gt;Naviava</description>
      <pubDate>Fri, 26 Mar 2021 21:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729497#M35360</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-26T21:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729507#M35362</link>
      <description>&lt;P&gt;Here is the documentation for PROC NLMIXED, where you can find syntax and example code --&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_009&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_nlmixed_toc.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_009&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_nlmixed_toc.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose your treatment contains levels A and P, and your data is already sorted by ID. Then if this is your PROC MIXED statement --&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed; 
class treatment; 
model outcome= time treatment time*treatment / s; 
random intercept/subject=ID; 
lsmeans treatment / e;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might write the following PROC NLMIXED program to fit the same model. Please note that the LSMEANS statement in PROC MIXED above was computed at mean value for TIME, which would be displayed in the E option output. For illustration purpose, I used 5 as the mean value for time for my sample code below. You would need to replace that with whatever mean value was used in PROC MIXED.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed;
  parms b0=2 b1=1.2 b2=0.5 b3=1.2 sb=2 se=1; ** you might want to specify more reasonable starting values;
  mu = b0 + b1*time + b2*(treatment="A") + b3*time*(treatment="A") + u;
  model outcome ~ normal(mu, se);
  random u ~ normal(0, sb) subject=ID;
  estimate 'percent difference in the A and P at the mean time of 5' 100*(b2+b3*5)/(b0+b1*5);
  run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please let me know if this does not work out.&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 22:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729507#M35362</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-03-26T22:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729767#M35377</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/198601"&gt;@Naviava1973&lt;/a&gt;&amp;nbsp;, I missed that your response was already log transformed.&amp;nbsp; That means that for the first method I mentioned, the lsmeans need to be preprocessed by exponentiating.&amp;nbsp; The same would apply to any confidence bounds.&amp;nbsp; The second method could be applied directly to the lsmeans you currently obtain as well as any confidence bounds.&amp;nbsp; As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;said, you would have to use NLMIXED to get valid standard errors for the means on the original scale.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 12:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729767#M35377</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-03-29T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729832#M35389</link>
      <description>Hi Steve,&lt;BR /&gt;Thanks for the advise.&lt;BR /&gt;I really appreciate.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;KO&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729832#M35389</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-29T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729833#M35390</link>
      <description>Dear Jill,&lt;BR /&gt;Thank you very much.&lt;BR /&gt;This has worked out perfectly and I can now see the outcome I was looking for though I noticed wide 95% CIs.&lt;BR /&gt;Once more, I really appreciate the support from you and the SAS users group.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;KO&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/729833#M35390</guid>
      <dc:creator>Naviava1973</dc:creator>
      <dc:date>2021-03-29T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763926#M37283</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;How do we compare changes in a metric for two groups across two points T0 and T+2 in time using a similar approach ? Can you please help me arrive at the % change in the metric for the two groups ? I am using proc glm with a response variable as the value of the metric at&amp;nbsp; T+2.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763926#M37283</guid>
      <dc:creator>Rhea1234</dc:creator>
      <dc:date>2021-08-25T17:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763938#M37284</link>
      <description>&lt;P&gt;Here is how I would approach this.&amp;nbsp; There are two levels of group (say A and B) and two levels of time (t0 and t+2). I would use PROC MIXED as you have correlated responses. Follow this up with a post-analysis processing to get the percent change.&amp;nbsp; Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=have;
class group time subject; /* subject is a member of one of the levels of group */
model response = group time group*time;
repeated time/type=un subject=subject;
lsmestimate group*time 'Baseline Group A' 1 0 0 0;
lsmestimate group*time 'Baseline Group B' 0 0 1 0;
lsmestimate group*time 'Difference over time for Group A' 1 -1 0 0;
lsmestimate group*time 'Difference over time for Group B' 0 0 1 -1;&lt;BR /&gt;lsmestimate group*time 'Difference between groups over time (B - A)' -1 1 1 -1;
ods output  lsmestimates=lsmestimates;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can calculate the percent change in each group by dividing the difference over time by the baseline for that group.&amp;nbsp; The p value from the last lsmestimate would apply to the difference in group changes. No place along here would there be an analysis of percent change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I strongly recommend against analyzing the percent changes as a response variable.&amp;nbsp; See Harrell's&amp;nbsp;&lt;EM&gt;Applied Regression Strategies&lt;/EM&gt; or the website run by the Vanderbilt University biostats department &lt;A href="https://discourse.datamethods.org/t/author-checklist/3407" target="_self"&gt;https://discourse.datamethods.org/t/author-checklist/3407&lt;/A&gt;&amp;nbsp;.&amp;nbsp; In particular, see this webpage:&amp;nbsp;&amp;nbsp;&lt;A href="http://hbiostat.org/bbr/md/change.html#sec:changegen" target="_self"&gt;http://hbiostat.org/bbr/md/change.html#sec:changegen&lt;/A&gt;&amp;nbsp; for the many caveats on analyzing change scores.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763938#M37284</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-25T17:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763967#M37292</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=have;
class group covA covB; 
model response = covA covB covC baseline group  group*baseline;
lsmeans group/pdiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/394762"&gt;@Rhea1234&lt;/a&gt;, this code should help you accommodate the things brought up in your private message.&amp;nbsp; At this point, I would recommend responding here rather than be a private message - there are other folks who can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code above will give the difference between groups, averaged over the categorical effects covA and covB,, and estimated at the mean values of the continuous effects covC and baseline.&amp;nbsp; The F test for group*baseline will tell you whether the adjustment is the same in both groups.&amp;nbsp; Now I'll recommend getting a good text on analysis of covariance to see how to proceed.&amp;nbsp; If you have access to SAS for Mixed Models, there is a great chapter that goes through this step by step, and how to get the comparisons needed if the adjustments for baseline are not equal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 19:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763967#M37292</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-25T19:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763975#M37295</link>
      <description>&lt;P&gt;Thank you Steve. I will try to get a copy of the book. I ultimately need to arrive at the % change (response - baseline) for the two groups and assess the impact other covariates have on the response. Hope it makes sense?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 19:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/763975#M37295</guid>
      <dc:creator>Rhea1234</dc:creator>
      <dc:date>2021-08-25T19:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764062#M37301</link>
      <description>&lt;P&gt;My understanding is that, you wanted the percent change, also wanted the significance of the percent change (p-value, or 95%ci, or both), correct? If so, you would need to use PROC NLMIXED to fit your model and use the ESTIMATE statement to get what you want.&lt;/P&gt;
&lt;P&gt;The syntax of the ESTIMATE statement depends on your model set up. For this new request, can you send me your current program (proc glm or proc mixed) and exactly what percent change you want? I will see if I can come up with the PROC NLMIXED program for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 22:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764062#M37301</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-08-25T22:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764104#M37303</link>
      <description>&lt;P&gt;Thank you Jill. Here is what I am trying to solve for :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two groups with a metric that is measured across two time frames say T+2 and T0 , where T0 is the baseline. I need to compare the percentage change in the metric from T0 to T+2 across the two groups, with the baseline metric being one of the covariates. Additionally, I have been tasked to identify other covariates eg. Cov A Cov B and Cov C (mix of continuous and categorical) that are associated (have statistically significant relationship) with the change. I am aware and as Steve has rightly pointed out that we cannot regress percentage change or the difference T+2- T0 values. Hence, I tried to regress T+2 metric ~ T0baseline + group . Here is what I have put together :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=have;&lt;/P&gt;&lt;P&gt;class group;&lt;/P&gt;&lt;P&gt;model T+2_metric= group T0_metric covA cov B covC /solution;&lt;/P&gt;&lt;P&gt;lsmeans group/pdiff=all ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with how to arrive at the percentage change comparison from here.&lt;/P&gt;&lt;P&gt;With the proc mixed code, Steve had provided I was able to get the % Change in Group A vs Group B. However, I would need to control for the baseline value as well. Please let me know if this makes sense or if I have been approaching the problem incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rhea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 04:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764104#M37303</guid>
      <dc:creator>Rhea1234</dc:creator>
      <dc:date>2021-08-26T04:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764150#M37304</link>
      <description>&lt;P&gt;There is one issue that you should think about some more, in my opinion. It looks like you are "adjusting" for baseline twice - once by calculating the percent change for the given subject, and again by using the baseline as a covariate.&amp;nbsp; If you have the percentage change for each subject, then I would remove the baseline covariate from the model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 11:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764150#M37304</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-26T11:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764154#M37305</link>
      <description>&lt;P&gt;Hi Steve,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since using percentage change as a response variable isn't recommended, I had to restate the equation as T+2_metric ~ T0_metric&amp;nbsp; (baseline) + group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As recommended, should I compare the&amp;nbsp;&lt;SPAN&gt;means of t0_metric to get the average for each group and then calculate the difference between those values and the corresponding least squares means, dividing by the average t0_metric X100?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will this lead to adjusting of baseline twice?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rhea&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 11:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764154#M37305</guid>
      <dc:creator>Rhea1234</dc:creator>
      <dc:date>2021-08-26T11:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Mixed treatment effect percentage change</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764279#M37318</link>
      <description>&lt;P&gt;Your PROC GLM code treats the baseline measurements (T0) as a covariate, and I am not sure if a percent changes between the measurements at T2 and T0 can be computed based on this model specification.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve's PROC MIXED model specification computes the difference between the groups in T2, accounting for the baseline measurements. Is that what you wanted?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to compute the difference between T2 and T0, whether it is a percent difference or the raw difference, you would probably need to arrange your data to have a TIME variable in there, just like what you sent in the original post.&lt;/P&gt;
&lt;P&gt;I think my PROC NLMIXED code worked for your original question, right? That model has TIME and TREATMENT (or GROUP?) in there. How is your new question different from the previous one in terms of the data and model?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 17:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-Mixed-treatment-effect-percentage-change/m-p/764279#M37318</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-08-26T17:02:30Z</dc:date>
    </item>
  </channel>
</rss>

