Apologies for a too verbose post.
I am having trouble following what appears to be a simple example of using collect and regress to layout regression results. I am using a recently updated Stata 17.0 with Windows 11. I start with this code:
The regression succeeds and produces unremarkable results but with the following notes:
The examples I have seen imply that this should return the coefficient, CI, lower bound, upper bound, df, p, se, and t. In the table this produces on my machine I only see the coefficient for mpg. I chekck the dimensions of the default collection and see:
So, having checked the levels of result, I tried (what I thought would be relatively simple):
Which will show the F statistic but nothing else.
I have also tried:
But this tells me that level r2a of result is not found and then a message:
I am convinced that the new tables and collection commands are very useful, but I'm still mired in the complexity.
Any help in understanding what I'm doing wrong would be very welcome.
I am having trouble following what appears to be a simple example of using collect and regress to layout regression results. I am using a recently updated Stata 17.0 with Windows 11. I start with this code:
Code:
collect clear sysuse auto, clear regress price mpg collect get r() e() collect layout (result)(colname)
Code:
Note: collect is ignoring label "z" for level _r_z of dimension result. Note: collect is ignoring label "|z|" for level _r_z_abs of dimension result.
The examples I have seen imply that this should return the coefficient, CI, lower bound, upper bound, df, p, se, and t. In the table this produces on my machine I only see the coefficient for mpg. I chekck the dimensions of the default collection and see:
collect dims | ||
Collection dimensions | ||
Collection: default | ||
Dimension | No. | levels |
Layout, style, header, label | ||
cmdset | 1 | |
coleq | 1 | |
colname | 2 | |
program_class | 2 | |
result | 33 | |
result_type | 3 | |
rowname | 10 | |
Style only | ||
border_block | 4 | |
cell_type | 4 | |
Code:
collect layout (result[F r2a])
Which will show the F statistic but nothing else.
I have also tried:
Code:
collect layout (colname)(result[F r2a])
Code:
Your layout specification does not identify any items.
Any help in understanding what I'm doing wrong would be very welcome.
Comment