Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Stata 11 error Stata matrices have not been cleared


From   [email protected] (William Gould, StataCorp LP)
From   Ekaterina Hertog <[email protected]> writes
To   [email protected]
Subject   Re: st: Stata 11 error Stata matrices have not been cleared
Date   Tue, 27 Oct 2009 14:27:13 -0500

> I have a master file which runs a set of do files and if I run the whole
> masterfile together keeps giving me an error: "no; Stata matrices have not
> been cleared (type -clear matrix- to clear Stata matrices).  [...]  [I]
> start each do file with -clear- and [...]

Start each do-file with -clear all- rather than just -clear-.

-clear- without -all- removes

    1.  data 
    2.  value labels

-clear all- removes the above and removes 

    3.  matrices (Stata)
    4.  scalars  (Stata)
    5.  constraints 
    6.  clusters
    7.  save results
    8.  sersets
    9.  Mata functions        <--
   10.  Mata matrices         <--
   11.  other Mata objects    <--

Ekatrina noted that -clear mata- seemed to solve the problem.  -clear mata-
removes (1), (2), (9), (10), (11).  

-clear all- is best.

-- Bill
[email protected]
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index