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

st: boostrapping


From   "Eva Rueckert" <[email protected]>
To   [email protected]
Subject   st: boostrapping
Date   Wed, 20 Nov 2002 16:24:33 -0000

Dear All,

I am trying to bootstrap a decomposition using the syntax outlined 
in the stata manual. I want to bootstrap the whole decomposition 
procedure which includes the running of some regressions. The 
beginning of my file looks as follows:

program define jmp
	version 7.0
	if "`1'"=="?" {
		global S_1 "com1 com2 com3 com4"
		exit
}

tempname jmp

global list1 "educb educc educd educe educf marr childreny 
childreno ten tensq exp expsq occupa occupb occupc occupd 
occupe occupf occupg occuph indc indd indef indg indh indi indj 
indk indl indm indn indo  Harjumaa West Sothcntl Nrthcntl South 
ethnic" 
local year "94 99"
foreach yr of local year {
	reg lnwge $list1 if year==`yr' & gender==1
	gen fesample_`yr'=e(sample)==1
	/*and so on*/

post `1' `topost'
end

the file does not run and the return message is:

 use "P:\panel.dta", clear
. set seed 10001
. bstrap jmp, reps(1)
(obs=19210)

too many variables specified
r(103);

now my question: does the r(103) refer to the variables I have 
specified in my global list1? And if so, is there something i can do 
to extend the number of variables?

I would be grateful for any suggestions.
Eva 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eva Rueckert
Centre for Economic Reform and Transformation
School of Management
Heriot-Watt University
Edinburgh EH14 4AS UK
Tel.: +44 (0)131 451 3625
Fax.: +44 (0)131 451 3296
URL:  http://www.som.hw.ac.uk/somer/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
*   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