Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Cohen, Elan" <cohened@upmc.edu> |
To | "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |
Subject | RE: st: margins with post option |
Date | Wed, 23 Feb 2011 13:40:23 +0000 |
Thanks David & Richard. -est store- & -est restore- worked. Oddly, I had tried -est save- & -est use- earlier but was getting the following error when I tried to rerun -margins-: "e(sample) does not identify the estimation sample". I was under the impression that store/restore worked the same as save/use with the only difference being whether the results were stored in memory or on disk. Thanks again for your help, - Elan > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu [mailto:owner- > statalist@hsphsun2.harvard.edu] On Behalf Of Richard Williams > Sent: Tuesday, February 22, 2011 18:14 > To: statalist@hsphsun2.harvard.edu > Subject: Re: st: margins with post option > > At 05:51 PM 2/22/2011, Cohen, Elan wrote: > >I'm using -margins, post- as indicated in: > > > >http://www.ats.ucla.edu/stat/stata/seminars/interaction_sem/interactio > n_sem.htm > > > >However, after the initial -margins, post- command is issued, Stata > >will not let me rerun another -margins, post- giving me the > >following error: "margins cannot work with its own posted results". > > > >My model takes a very long time to run, so I'd like to avoid using > >-eret clear- and rerunning the model. Is there a way to clear what > >margins posted without erasing the model results? > > > >Thanks, > > > >- Elan > > Perhaps you want -estimates store- after the estimation command, and > then -estimates restore- after the -margins- command? See the help > for details. In general, just make sure you store any results that > you want to get back later. > > > ------------------------------------------- > Richard Williams, Notre Dame Dept of Sociology > OFFICE: (574)631-6668, (574)631-6463 > HOME: (574)289-5227 > EMAIL: Richard.A.Williams.5@ND.Edu > WWW: http://www.nd.edu/~rwilliam > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/