>> Home >> Resources & support >> Users Group meetings >> 5th UK meeting

Replaying estimation results

        program define mycmd6, eclass
            local options "option set 1"
            if replay() {
                if "`e(cmd)'" != "mycmd6" {
                    error 301
                syntax [, `options']
            else {
                syntax varlist [if] [in] [, `options' option set 2]
                   ...code performing estimation, setting estimation results, etc...
                estimates local cmd "mycmd6"
                                            /* code to display or redisplay results */
            ...code omitted that outputs header table above coefficients...
            estimates display
The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn Google+ Watch us on YouTube