Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: bootstrapping a vector


From   Carl Nelson <chnelson@illinois.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: bootstrapping a vector
Date   Sat, 13 Dec 2008 09:30:50 -0600 (CST)

I have the following program that returns a coefficient vector estimated in mata

capt prog drop gmmbarg
prog def gmmbarg, eclass
mata: gmmrsk("share_riskyassets","risktol_m risktol_f",/*
*/ "educ_ratio finwealth1 bartol_m barwel weltol_m")

ereturn matrix beta = coeff
ereturn local cmd = "bootstrap"

end

I am trying to follow Jeff Pitblado's faq example for bootstrapping a vector. But when I run the bootstrap I get the following:

 set seed 1020304

. bootstrap _b, reps(50): gmmbarg
(running gmmbarg on estimation sample)
invalid expression: _b
r(198);

I don't understand what I am doing wrong, and would appreciate some help. Thanks.

Carl Nelson

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