Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: BRR for Quantile Regression using bs4rw
From
"Hussein, Mustafa (Mustafa Hussien)" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: BRR for Quantile Regression using bs4rw
Date
Tue, 24 Sep 2013 20:14:20 +0000
Hi Statalisters!
I have been working on a quantile regression model for complex survey data (MEPS dataset) and was trying to use the user written command "bs4rw" to do a balanced repeated replication estimation of the SEs out of qreg. Here is my code:
bs4rw, rw(brrrwt*): qreg $depvar $demo if subpop==1 [pw=perwt5], q(.75)
This should work as an alternative to svy brr estimation, which is not allowed with qreg, and in theory this is better than doing a regular bootstrap. Although the help file for bs4rw says pweights are allowed in command, I always get an error saying that pweights are not allowed. Same problem happens if I specify my weight variable as iw or fw=int(), and also even when I specify no weight at all. I still get the same error that iweight or whatever weight I am using is not allowed in this composite estimation. (aw is not allowed with bs4rw). Perhaps the error messages are coming from bs4rw? qreg would run okay with any of these weights.
Any thoughts or suggestions on this problem or on generally doing a BRR on qreg are greatly appreciated.
Thanks,
Mustafa
PhD Candidate, Health Policy
UT Health Science Center
Memphis, TN
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/