Hello!
I fitted piecewise linear regression. The model specification is as follows...
,where 
Intervention was being in effect right after block 24. Through this model, my ultimate goal is to check whether the rate has changed from pre-intervention to post-intervention. The reason why I chose piecewise model is because I also wanted to check how rate change overtime before and after intervention.
To check the ultimate goal, I ran following code...
proc glm data=X;
class intervention;
model rate=intervention block spline;
lsmeans intervention/cl;
run;
However, LSMEANS statement wouldn't give me the answer I want. Actually, LSMEANS statement would give me pre-intervention and post-intervention rate when block variable and spline variable were set to its mean value. This is not what I wanted.
Does anyone has an idea how to output the mean rate of pre-intervention and mean rate of post-intervention from the model?
Thank in advance!