<?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: output effect estimate from effectplot of a variable modelled by spline term in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/output-effect-estimate-from-effectplot-of-a-variable-modelled-by/m-p/582021#M28546</link>
    <description>&lt;P&gt;This example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect027.htm" target="_self"&gt;Example 38.15 Comparing Multiple B-Splines&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;appears to do what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 18:56:15 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2019-08-18T18:56:15Z</dc:date>
    <item>
      <title>output effect estimate from effectplot of a variable modelled by spline term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/output-effect-estimate-from-effectplot-of-a-variable-modelled-by/m-p/581493#M28541</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a linear mixed model with random intercept using glimmix to estimate the blood pressure over time of participants in a randomized control trial. I use a spline function to account for the sharp changes in blood pressure I observed over a treatment period, and my study question is if the blood pressure (bp) trajectory differ by treatmentgroup and exposureofinterest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my SAS code:&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=data order=formatted;
class visit release_id year treatmentgroup covariate1 covariate2 covariate3;
effect spl=spline(year/basis=bspline degree=3 KNOTMETHOD=list(1,4) details); 
model bp= spl|treatmentgroup|exposureofinterest
covariate1 covariate2 covariate3
/solution;
random intercept/type=un sub=release_id;
store model;
run;



proc plm source=model;
effectplot slicefit(x=y sliceby=exposureofinterest plotby=treatmentgroup)/clm; 
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can visualize the effect using the effectplot function, however, I wonder if there's a way to output the effect estimate at each cross-section of time, ie. year=1 year=2? (is it possible to use the estimate and contrast function? but since year is included in the spline but not as a variable in the model, how do I specify time?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using the score function to output one unit of change in exposureofinterst by treatmentgroup, hoping to obtain just the effect estimate using the following code. But I am not getting any predicted lclm uclm. Is there anything wrong with my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data template; 
do intercept=0; 
do &amp;amp;x._0_L2=1;
do SEX=0;
do B_AGEGROUP=0;
do	RACE=0;
do	B_edu=0;
do	B_income=0;
do	B_married=0;
do	B_ALC_DAY=0;
do	B_smoke=0 ;
do	DASH=0;
	do assign="Lifestyle";
	do y=0 to 10 by 0.5; 
	output; 
	end; 
	end; 
	
	do assign="Placebo"; 
	do y=0 to 10 by 0.5; 
	output; 
	end; 
	end; 
end; 
end; 
end; 
end;
end; 
end;
end; 
end;
end; 
end;
end;
run; 

data template; 
set template; 


*calculate the predicated values for each value of t;
proc plm restore=plot2;
  score data=template out=estimate predicted=predicted lclm=lclm uclm=uclm;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/output-effect-estimate-from-effectplot-of-a-variable-modelled-by/m-p/581493#M28541</guid>
      <dc:creator>sasbee</dc:creator>
      <dc:date>2019-08-15T16:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: output effect estimate from effectplot of a variable modelled by spline term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/output-effect-estimate-from-effectplot-of-a-variable-modelled-by/m-p/582021#M28546</link>
      <description>&lt;P&gt;This example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect027.htm" target="_self"&gt;Example 38.15 Comparing Multiple B-Splines&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;appears to do what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 18:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/output-effect-estimate-from-effectplot-of-a-variable-modelled-by/m-p/582021#M28546</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2019-08-18T18:56:15Z</dc:date>
    </item>
  </channel>
</rss>

