Statalist


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

[no subject]



The programming detail to get around is that -bootstrap- is using -qreg-
to display the results, but -qreg- does not recognize -bootstrap-s
estimation results.

Here is a quick work-around:

	program myqreg
		version 10.1
		syntax [varlist] [if] [in] [, *]
	
		if replay() {
			_coef_table, `options'
			exit 
		}
		qreg `0'
	end     

We can verify that all is well with the standard bootstrap by comparing
-bootstrap: myqreg- results with -bsqreg-:

	. sysuse auto
	. set seed 12345
	. bs, reps(20): myqreg mpg turn
	. set seed 12345
	. bsqreg mpg turn

Alan can put the above definition of -myqreg- in an ado-file named
'myqreg.ado'.

--Jeff
jpitblado@stata.com
*
*   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/

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