Hi Statalist
I want to make a baseline demographic table (table 1) but I am having some problems.
I have an unexposed and an exposed group with this distribution:
| exposed
unexposed | 1 . | Total
----------------+---------------------------+---
1 | 12,032 4,632 | 16,664
. | 5,003 0 | 5,003
--------------+------------------+----------
Total | 17,035 4,632 | 21,667
I would like a table that has:
My problem is that some of the unexposed will become exposed at some point and I therefore have two different variables for unexposed and exposed. When i try to make a table it looks like this:

This is a bit off from what I want. Any suggestions?
I want to make a baseline demographic table (table 1) but I am having some problems.
I have an unexposed and an exposed group with this distribution:
| exposed
unexposed | 1 . | Total
----------------+---------------------------+---
1 | 12,032 4,632 | 16,664
. | 5,003 0 | 5,003
--------------+------------------+----------
Total | 17,035 4,632 | 21,667
| Exposed | Total | |||
| Unexposed | 1 . | |||
| 1 | 12,032 4,632 | 16,664 | ||
| . | 5,003 0 | 5,003 | ||
| Total | 17,035 4,632 | 21,667 |
I would like a table that has:
| Unexposed | Exposed | Total | ||
| Sex - female - male |
||||
| Ethinicity - - |
||||
| .... | ||||
| ... |
My problem is that some of the unexposed will become exposed at some point and I therefore have two different variables for unexposed and exposed. When i try to make a table it looks like this:
This is a bit off from what I want. Any suggestions?

Comment