Dear Statalist,
I have designed a table to my specifications displaying the resuts _r_b in cells. This reflects a rate that I would like to scale by multiplying by 1000. I can easily export to excel and finish the table there, but it would be nice to do this within stata. It is not an option to rerun the analysis with a scaled variable as the code takes a long time to run (not to mention I would hope such a simple formatting desire is accomplishable post-analysis). I am looking for something like collect style results _r_b*1000.
I'm not sure if a reproducible example is necessary, but to comply here is code that will generate a table (this time the result is "mean" not _r_b). I would like to multiple the mean in the table by 1000 using collection manipulations rather than transforming the variable before analysis.
I could not find an answer searching prior posts. I apologize if this has been discussed before.
Thank you in advance.
I have designed a table to my specifications displaying the resuts _r_b in cells. This reflects a rate that I would like to scale by multiplying by 1000. I can easily export to excel and finish the table there, but it would be nice to do this within stata. It is not an option to rerun the analysis with a scaled variable as the code takes a long time to run (not to mention I would hope such a simple formatting desire is accomplishable post-analysis). I am looking for something like collect style results _r_b*1000.
I'm not sure if a reproducible example is necessary, but to comply here is code that will generate a table (this time the result is "mean" not _r_b). I would like to multiple the mean in the table by 1000 using collection manipulations rather than transforming the variable before analysis.
Code:
webuse auto, clear gen length_1000 = length/1000 collect: table foreign, stat(mean length_1000) name(mytable)
Thank you in advance.

Comment