Hi there,
I am trying to use the -postfile- command to summarize multiple regression outputs into a table.
This code doesn't run through because of "type mismatch" for the variable "outcome". If I remove the "str10" type requirement, the code runs through but the posted dataset has the average value of each `y' rather than the name of each `y' (which is what I want).
I would appreciate any suggestions on my code or an alternative method to summarize the result.
I am trying to use the -postfile- command to summarize multiple regression outputs into a table.
Code:
tempname results; postfile `results' str10 outcome coef1 using "file", replace; foreach y of varlist *_gap {; qui reg `y' var1, robust; post `results' (`y') (_b[var1]); }; postclose `results';
I would appreciate any suggestions on my code or an alternative method to summarize the result.
Comment