Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: Quantile Regression Confidence Intervals


From   "Jeff" <jbw-appraiser@earthlink.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Quantile Regression Confidence Intervals
Date   Thu, 14 Apr 2011 11:07:18 -0700

In Stata 10:

I found two syntax formulas to produce confidence intervals around an
ols regression trend line.  I would like to know if these two sytax
formulas work for a quantile regression (median or any of the other
quantiles.)

First:
regress price sf
predict price
predict se, stdp
display invttail (30, .05/2)    

[Where 30 = degrees of freedom for computing the t value - say t=2]

generate ll = price - 2*se
generate ul = price + 2*se 

I got the above syntax formula from Statistics with Stata by Hamilton

Second:
regress price sf
local level = (100-95)200
generate ll = price - invttail(e(df_r), `level')*se
generate ul = price + invttail(e(df_r), `level')*se

I got this formula from Prof. Cox.

Question will each of these syntax formulas work with a quantile
regression on any of the quantiles?
Are the degrees of freedom different between an ols regression and a
quantile regression for the different quantiles? 

Thank you in advance.


Jeffrey B. Wolpin
 



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