Hello,
I'm running a repeated measures model in PROC MCMC with the aim to produce both treatment differences (three treatment arms) and LS-Mean equivalents at each visit. I'm assuming non-informative priors for now, but will incorporate an informative prior for treatment as a sensitivity. I have two questions:
I have an example code which includes two treatment variables (D1 (Trt1 vs Trt3) and D2 (Trt2 vs Trt3), and baseline score (base). Any help on generating posterior Means or LSMeans for each treatment by visit would be appreciated.
You would need to create a data set with the coefficients in them and then use the PREDDIST statement with the COVARIATES= option.
I am not sure how the priors would change the coefficients as those are meant to be just a linear combination of the parameters applied to the posterior predictive distribution.
Hi Rob,
Thank you for sharing! Would you be able to share an example of the dataset I need to create? I require the individual treatment means for each visit - would it be using the array terms?
Try enclosing the contrasts with BEGINNODATA and ENDNODATA statements:
beginnodata;
v1d1 = (B1 + Va1) ;
v2d1 = (B1 + Va2) ;
v3d1 = (B1 + Va3) ;
v4d1 = (B1 + Va4) ;
v5d1 = (B1 + Va5) ;
v6d1 = (B1) ;
v1d2 = (B2 + Vb1) ;
v2d2 = (B2 + Vb2) ;
v3d2 = (B2 + Vb3) ;
v4d2 = (B2 + Vb4) ;
v5d2 = (B2 + Vb5) ;
v6d2 = (B2) ;
endnodata;
Hi JackieJ,
Apologies I forgot to copy that from my code originally. However the v1d1 etc only produce the treatment comparisons at a visit rather than the individual treatment means which I am also after. B1 is the comparison between Trt1 and Trt3 at Visit 1, is there a way I could just obtain the Mean for Trt1 at Visit 1 and not the difference?
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.