Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: where to find the new data file in this program?


From   xiaoyan chen <[email protected]>
To   [email protected]
Subject   st: where to find the new data file in this program?
Date   Mon, 30 Oct 2006 13:59:40 -0800 (PST)

Hi, I'm using hazard model for a project. There are
events that don't have clear ending dates. So I
created program running different ending dates. After
running this program I don't see the new datafile
containing all the coefficients and t ratios at the
designated directory. Is the "replace" after the
directory causing trouble? where can I solve the
problem? thanks much!
Here's the program:

program define pol_change_end
	version 9.2
	tempname pol_ch
	postfile `pol_ch' ending coef sterr tratio using
"C:\Documents and
Settings\Administrator\Desktop\Israel data\hazard
model\pol_change_endings.dta", replace
	quietly {
		local i = 1
		while `i' <=9 {
			cox attack pol_change_`i' road_map_5 aqaba_peace_5
abbas_resign_5 arafat_die_1 statadate, exactm
			post `pol_ch' (`i') (_b[pol_change_`i'])
(_se[pol_change_`i'])
(_b[pol_change_`i']/_se[pol_change_`i'])
			local i = `i' + 1
		}
	}
	postclose `pol_ch'
end




 
____________________________________________________________________________________
Want to start your own business? Learn how on Yahoo! Small Business 
(http://smallbusiness.yahoo.com) 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index