Statalist


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

Re: st: How do I compute quantile regressions using quantiles from a uniform distribution?


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: How do I compute quantile regressions using quantiles from a uniform distribution?
Date   Tue, 17 Jul 2007 21:30:58 +0100 (BST)

--- Anne-Laure Samson <[email protected]> wrote:
> Does anyone know how to perform quantile regressions using random 
> quantiles (from a uniform distribution) instead of the usual 0.1 to 
> 0.99 ones?

*---------- begin example -----------------
sysuse auto, clear
set seed 12345
forvalues i = 1/10 {
	local quant = round(uniform(),.01)
	local quants "`quants' `quant'"
}
local quants : list sort quants
sqreg pr foreign wei, quantiles(`quants')
*------------ end example -----------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 
*
*   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