Regarding table or tabulate outputs that print to the results window--
This may involve the -command- option embedded within the table feature, but I do not know how to use properly. Examples I've seen only describe adding regressions using this feature. Or perhaps there is a different way to approach:
How does one take data populated from a table, visible in the results window, and apply an operation to it? Is that data stored or storable somewhere for use?
Say I have a table that I generated using command
Code:
table (widget) (broken_status)
Widget | Broken (1) | Not Broken (0) | Total Annual Cost |
W1 | 200.00 | 800.00 | 1000.00 |
W2 | 1000.00 | 1000.00 | 2000.00 |
W3 | 300.00 | 200.00 | 500.00 |
W4 | 50.00 | 50.00 | 100.0 |
How could I apply simple arithmetic to the OUTPUT of the table to create an additional table column that shows "cost per month of broken widgets", which would == broken/12:
Widget | Broken (1) | Not Broken (0) | Total Annual Cost | Monthly Broken Cost |
W1 | 200.00 | 800.00 | 1000.00 | 16.666 |
W2 | 1000.00 | 1000.00 | 2000.00 | 83.333 |
W3 | 300.00 | 200.00 | 500.00 | 25 |
W4 | 50.00 | 50.00 | 100.0 | 4.166 |
Please advise and thanks!
Comment