Hi, all.
I am working with the updated -table- command in Stata 17, and am looking to produce a fairly standard, albeit large, "table 1". Is it possible to enter text subheadings between different variables?
As an example, I get a simple table running:
sysuse auto2.dta, clear
table var (), statistic(mean price mpg weight length) statistic(sd price mpg weight length)
Output:
----------------------------------------------
| Mean Standard deviation
--------------+-------------------------------
Price | 6165.257 2949.496
Mileage (mpg) | 21.2973 5.785503
Weight (lbs.) | 3019.459 777.1936
Length (in.) | 187.9324 22.26634
----------------------------------------------
However, I would like subheadings between variables such as the following (I've manually changed this table).
----------------------------------------------
| Mean Standard deviation
--------------+-------------------------------
Car features
Price | 6165.257 2949.496
Mileage (mpg) | 21.2973 5.785503
Car Size
Weight (lbs.) | 3019.459 777.1936
Length (in.) | 187.9324 22.26634
----------------------------------------------
Any advice would be much appreciated.
Thanks,
Vicki
I am working with the updated -table- command in Stata 17, and am looking to produce a fairly standard, albeit large, "table 1". Is it possible to enter text subheadings between different variables?
As an example, I get a simple table running:
sysuse auto2.dta, clear
table var (), statistic(mean price mpg weight length) statistic(sd price mpg weight length)
Output:
----------------------------------------------
| Mean Standard deviation
--------------+-------------------------------
Price | 6165.257 2949.496
Mileage (mpg) | 21.2973 5.785503
Weight (lbs.) | 3019.459 777.1936
Length (in.) | 187.9324 22.26634
----------------------------------------------
However, I would like subheadings between variables such as the following (I've manually changed this table).
----------------------------------------------
| Mean Standard deviation
--------------+-------------------------------
Car features
Price | 6165.257 2949.496
Mileage (mpg) | 21.2973 5.785503
Car Size
Weight (lbs.) | 3019.459 777.1936
Length (in.) | 187.9324 22.26634
----------------------------------------------
Any advice would be much appreciated.
Thanks,
Vicki
