On this instructional document about PROC MIXED:
https://www.pharmasug.org/proceedings/2021/SA/PharmaSUG-2021-SA-062.pdf
They demonstrate the example below to create an output that shows Least Square Means and columns for Estimate, Standard Error, DF, Lower and Upper. I need all of those, but I also want the N statistic. Does anyone know if there is an option that can be added in so I can get N on this output please? Thanks.
ods output lsmeans=pb_lsmean diffs=pb_lsdiff; proc mixed data=qlqc2 method=reml covtest empirical; by param; class subjid trt visit; model chg=base trt visit trt*visit; random intercept/ subject=subjid; repeated visit/ subject=subjid type=ar(1); lsmeans trt*visit/ cl pdiff; run;
You are going to have to merge the PROC MEANS output with the PROC MIXED output. PROC SQL is probably the best tool for that.
SteveDenham
Consider displaying Univariate(PROC MEANS) and MIXED statistics in rows.
I'm not sure what you mean by this. Industry convention requires statistics to be shown in tables where each statistic has a vertical column that displays the results and the treatments are listed horizontally in the table. If I displayed it vertically, no one would be able to read it or use in their reports.
Add the NObs table to your ODS OUTPUT statement:
ods output lsmeans=pb_lsmean diffs=pb_lsdiff nobs=pb_nobs;
You are going to have to merge the PROC MEANS output with the PROC MIXED output. PROC SQL is probably the best tool for that.
SteveDenham
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register 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.