Proc Tabulate Nice Table with 95% CI
Mon Aug 26 2024 21:05:01 GMT+0000 (Coordinated Universal Time)
Saved by
@ddover
Proc Tabulate Data=mort_models;
Class ac / preloadfmt;
Class subset;
Class tt ;
ClassLev tt / style={borderleftwidth=3 borderrightwidth=3 };
Var OddsRatioEst / style={borderleftwidth=3};
Var LowerCL / style={textalign=right font_style=italic};
Var UpperCL / style={textalign=left font_style=italic};
Var ProbChiSq / style={borderrightwidth=3};
Table subset=""*ac="", tt=""*(OddsRatioEst="OR"*f=6.2*{style={font_weight=bold borderleftwidth=3}}
LowerCL='95%'*f=6.2*{style={font_style=italic just=right foreground=gray}}
UpperCL='CI' *f=6.2*{style={font_style=italic just=left foreground=gray}}
ProbChiSq="p-value"*f=mypval.*{style={borderrightwidth=3}})
/ printmiss misstext=" " nocellmerge
;
format ac ac.;
format tt tt.;
keylabel sum=" ";
run;
**link below contains style keywords for Proc Template, Proc Report, and Proc Print**;
content_copyCOPY
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n15v5kbqdy53atn15rn9b7p6bsvi.htm
Comments