Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: help


From   "Gustavo Sanchez" <gsanchez@stata.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: help
Date   Thu, 5 Aug 2004 15:49:48 -0500

-ereturn post- needs to have both the mean and the variance included in the
command.

Gustavo

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of tanghongyang
Sent: Thursday, August 05, 2004 5:47 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: help


Dear Sir or Madam:

when I am using stata 8, I meet a big trouble. How to post the
result(including matrix e(b)) of nl to another file of dta?
I want to compare the coefs. Could you help me? thanks a lot in advance.
below is a part of the program  .

    forvalues n=1 (1) 19 {
# delimit;
clear;
insheet using temst.csv;
destring v2,gen(ytm) ignore("%") force;
keep v8 ytm v4;
encode  v8,gen(date);
gen cat=group(date);
sort cat;
drop if cat>19;
keep if cat==`n';
#delimit cr
 nl trifuna ytm v4

 ((matrix `b'=`e(b)'
display b
ereturn  post  `b' )) /*it does not work.*/
}
postclose results

        tanghongyang
        tanghongyang@taikanglife.com
          2004-08-05




*
*   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/



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