115Analysing Cost Data Collected in a Clinical Trial
Model Response = outcome treatment outcome*treatment;
Repeated outcome/ type=un grp=outcome*treatment sub=pat;
Lsmeans outcome*treat/cl;
Run;
4A.3 SAS Code for Modelling Costs: Using a Generalised
Linear Model – Assuming Costs are Gamma Distributed
PROC GENMOD data =<dataset>;
Class treatment;
MODEL cost =treatment age/ DIST=GAMMA LINK=LOG;
LSMeans treatment / pdiff cilink;
Run;
Output: