this should do the job:
preserve
...code with new data...
restore
Daniel
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of hemmeter
> Sent: Monday, August 12, 2002 9:50 PM
> To: [email protected]
> Subject: st: mlogit predict command and out of sample data
>
>
> Is it possible to use the predict command after mlogit to predict
> outcomes
> with a new data set in version 7? I have tried to follow the out
> of sample
> predict commands from the manual but find I am not allowed to use
> a new data
> set because the old data in the memory will be lost, according to
> the error
> message. And clearing the data loses the estimates the predict
> command need
> to run. If anybody knows of another way to do this I would
> greatly appreciate
> the help. Thanks.
>
> -Jeffrey Hemmeter
>
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/