I used Proc genmod on some dummy sas-data preparing for real data to calculate GMT, and GMT ratios. I want to compare groups 1-3 separately vs group 4 as regards the ratios and the results are below but I cannot find a way to output the lsmeans gr / diff exp cl results into a dataset for further processing (add to table outputs). Any suggestions? Also the procedure used for the would be appreciated (guess I have to investigate the SAS documentation):
proc genmod data=gmt;
model lChol = gr;
lsmeans gr / diff exp cl;
*output out=out_gmt ;
Add the statement
ods trace on;
before the procedure call to get a list of available output datasets in the log. Then use a statement such as
ods output LSMeans=myLsmeans Diffs=myDiffs;
among the procedure statements to output the datasets.
... guess I have to investigate the SAS documentation...
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.