Statalist


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

st: AW: IV Quantile Regression and Test of Equality


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: IV Quantile Regression and Test of Equality
Date   Tue, 15 Dec 2009 13:47:01 +0100

<> 

" bootstrap "IVQRestimates" _b, reps(100) dots"

This is not your call to -bootstrap- the command "IVQRestimates", is it? It
does not follow the syntax explained in -h bs- (where the command in
question goes after the colon).



" The other problem is that after using this procedure, Stata does not
recognize the quantiles,"

What do you mean by that? -sqreg- does leave behind the coefficient vector
and the associated varcov, so you can -test- afterwards:

***
sysuse auto, clear
sqreg price weight length foreign, quantile(.25 .5 .75)
te [q25=q50]
***

Since you instructed -bootstrap- to save only the coefficients ("_b"), why
do you expect that a -test- procedure would be possible afterwards?

HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Francesco
Burchi
Gesendet: Dienstag, 15. Dezember 2009 12:42
An: [email protected]
Betreff: st: IV Quantile Regression and Test of Equality

Dear Statalisters,

I am applying instrumental variable quantile regression due to the
endogeneity of one explanatory variable (endgovar). I am using two
instrumental variables (instrument1 and instrument2).  I have followed the
procedure already highlighted in previous posts, that is:

program IVQRestimates
reg endogvar instrument1 instrument2 X1 X2 X3 X4, robust
predict double IVendogvar, xb
sqreg Y IVendogvar X1 X2 X3 X4, quantiles(10,30,50,70,90)
end 
bootstrap "IVQRestimates" _b, reps(100) dots

Unfortunately, Stata gives me the message "insufficient observations to
compute bootstrap standard errors. no results will be saved" There is
clearly no problem of total number of observations since they are more than
6000. I have tried different specifications of the model, but the algorithm
still does not converge. However, when I have included just one of the two
instrumental variables, it finally produced the results. Do you have any
explanation of this? I would be really glad to have suggestions on how to
obtain my results keeping both the instruments.

The other problem is that after using this procedure, Stata does not
recognize the quantiles, thus I cannot automatically run the Wald tests to
test the equality of coefficients across different quantiles. Do you have
any suggestions on this? Or, could you simply tell me how I could compute
the test by hand?

Thanks,
Francesco


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