Code:
*r30 panel
tabstat tot30* if (armn==1), stat(mean sd) long col(stat) format(%9.2f) save
return list
mat list r(StatTotal)
mat A1 = r(StatTotal)'
mat list A1
matrix rownames A1 = "outpatient" "inpatient" "snf" "hospice" "home health" ///
"Total"
frmttable using table1a, statmat(A1) substat(1) sdec(1) colwidth(0.25) ///
ctitles("", "", "30-day" \"", "Treatment"\"" "Mean(sd)")
replace ///
tabstat tot30* if (armn==2), stat(mean sd) long col(stat) format(%9.2f) save
return list
mat list r(StatTotal)
mat A2 = r(StatTotal)'
mat list A2
matrix rownames A2 = "outpatient" "inpatient" "snf" "hospice" "home health" ///
"Total"
frmttable using table1a, statmat(A2) substat(1) sdec(1) colwidth(0.25) ///
ctitles(""\"", "Control"\"" "Mean(sd)") merge
0 Response to Reducing space between columns using frmttable
Post a Comment