Proc Tabulate Data=Results ; Where CRmodel=:"Fine"; Class TVmodel HRtype link Contrast; Class blank five; Var estimate1 estimate / style={fontweight=bold}; Var LowerLimit1 LowerLimit / style={textalign=right} ; Var UpperLimit1 UpperLimit / style={textalign=left}; Var pvalue_noTV pvalue_Const pvalue_TV; Table link=""*Contrast="", five=""*(Estimate1="HR"*{style={font_weight=bold fontsize=8pt}}*sum="" LowerLimit1="95%"*{style={font_style=italic fontsize=7pt just=right}}*sum="" UpperLimit1="CI"*{style={font_style=italic fontsize=7pt just=left}}*sum="") pvalue_noTV="Omnibus p-value"*sum="" blank=""*{style={background=grey}}*n=""*f=ohno. (HRtype="Time-Varying Hazard Ratio Model"*(Estimate="HR"*{style={font_weight=bold fontsize=8pt}} LowerLimit="95%"*{style={font_style=italic fontsize=7pt}} UpperLimit="CI"*{style={font_style=italic fontsize=7pt}})*sum="" pvalue_TV="Time-varying p-value"*sum="" pvalue_Const="Omnibus p-value"*sum="" ) / nocellmerge misstext=' '; format HRtype tvyr.; format pvalue_: mypval.; run;