Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: -clear matrix- interrupts -esttab-
From
Michael McCulloch <[email protected]>
To
Statalist Statalist <[email protected]>
Subject
st: -clear matrix- interrupts -esttab-
Date
Tue, 17 Aug 2010 11:10:16 -0700
Dear Statalist members,
I'm using several propensity score models in sequence, reporting
results in a table compiled by -esttab-.
In Stata9, I could run the do-file structure as shown below.
In Stata11, after running the code below, I receive an error message:
. set mem 4m
no; Stata matrices have not been cleared
(type -clear matrix- to clear Stata matrices)
r(4);
However, if I insert -clear matrix- prior to reloading the data in
order to run -set mem 4m- (it's a large dataset), then -esttab- will
only return the second model results, and drops the 1st model,
presumably because of -clear matrix-. Is there another way to go about
this?
****** begin code ******
set mem 4m
load mydata.dta
keep if group==1
eststo model1 stcox covarA covarB
pscore covarA covarB, pscore(pscore)
set mem 4m
load mydata.dta
keep if group==2
eststo model1 stcox covarA covarB
pscore covarA covarB, pscore(pscore)
esttab * using Table1.rtf, replace
****** end code ******
Best wishes,
Michael McCulloch, LAc MPH PhD
Pine Street Foundation
124 Pine Street
San Anselmo, CA 94960-2674
tel: 415-407-1357
fax: 206-338-2391
*
* 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/