Statalist The Stata Listserver


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

st: Re: Bootstrap error


From   Carl Nelson <chnelson@uiuc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: Bootstrap error
Date   Fri, 5 May 2006 06:48:06 -0500

My apologies to the list for wasted bandwidth and thanks to 
Jeff for his solution.

In my previous response to Jeff' solution

do leekuznets

. program kuznets, rclass
  1.         tsset newid year
  2.         args lnSEC lnGDPC lnGDPC2
  3.         xtabond2 lnSEC l1.lnSEC lnGDPC lnGDPC2, gmm
(l1.lnSEC) iv(lnGDPC lnGDPC2)
  4.         return scalar kuz = exp(-_coef[lnGDPC]/(2*_coef
[lnGDPC2]))
  5. end

. 
. bootstrap kuz = r(kuz), reps(200) idcluster(newid) cluster
(countrycode) noisily: kuznets

I left out  gen newid = countrycode

before the program. When I added that line,which shoudl have 
been there in the first place, the bootstrap runs as 
expected.
Thanks again.

Carl Nelson
*
*   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