Statalist The Stata Listserver


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

st: bootstrap a parameter vector


From   Edwin Leuven <[email protected]>
To   [email protected]
Subject   st: bootstrap a parameter vector
Date   Fri, 17 Feb 2006 15:43:19 +0100

dear all,

i am trying to bootstrap a parameter vector.

i have written an eclass program along the lines of this:

cap program drop eff
program eff, eclass
dprobit geb bdate girl p2 p5 if achter==1
tempvar t
g `t' = e(sample)
matrix b = e(dfdx)
eret post b, esample(`t')
end

if i read the documentation well i can now bootstrap my estimates as follows:

. bootstrap , reps(100): eff

or

. bootstrap _b , reps(100): eff


but both throw an error:

. bootstrap , reps(100): eff
(running eff on estimation sample)
last estimation results not found, nothing to store
estimation result __000002 not found
r(111); t=0.17 15:27:41


does anyone know what i am doing wrong here?

thanks, edwin.


--
http://leuven.ecodip.net
*
* 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