I would like to use the Stata 17 table functions to automate a results table. I have used
nlcom to estimate relative risks and confidence intervals. Each of these values is located in the first row of the data table as individual values. Here's the code I run to display results in the console:
list relrisk_group2-1 rr_lci_group2-1 rr_uci_group2-1 in 1
list relrisk_group3-1 rr_lci_group3-1 rr_uci_group3-1 in 1
list relrisk_group4-1 rr_lci_group4-1 rr_uci_group4-1 in 1
These relative risks will be compared against adjusted results.
What I'd like to do is use the tables command to construct a table with these results that looks like this:
Relative Risk |
Group 2 vs 1 |
Group 3 vs 1 |
Group 4 vs 1 |
Unadjusted |
RR (LCI, UCI) |
RR (LCI, UCI) |
RR (LCI, UCI) |
Adjusted |
RR (LCI, UCI) |
RR (LCI, UCI) |
RR (LCI, UCI) |
The
command function doesn't seem to work with nlcom. The results being in individual cells in row 1 seems to complicate things a bit, too, such that the examples don't quite seem to work for me. Suggestions welcomed, thanks so much!
0 Response to Stata 17 Tables - Constructing a table from nlcom in 1 results?
Post a Comment