# Re: st: Decile regression using sqreg

 From "Leonor Saravia" <[email protected]> To [email protected] Subject Re: st: Decile regression using sqreg Date Wed, 23 Apr 2008 22:12:26 -0400

```Ronald,

Thank you for your quick response!
Please, may I bother you with an another question? I need to estimate
a regression for each decil of income for a country, so, if I�m
understanding well, using "sqreg" it�s not the way to do it, isn�t it?
Because I�m obteining 9 regression instead of 10, being 10 what I was
expecting.

Thank you again,

Leonor

2008/4/23, Ronan Conroy <[email protected]>:
> On 23 Apr 2008, at 20:36, Leonor Saravia wrote:
>
> > I'm having a problem using the "sreg" command in Stata. I'd like to
> > run a regression foreach DECIL of the income distribution of a
> > country, so I've told Stata to do this:
> >
> > sqreg income expenditure, quantiles(.1 .2 .3 .4 .5 .6 .7 .8 .9 1)
> >
>
> You only need nine cutpoints to create ten deciles. The 1 at the end is
> unnecessary.
>
> >
> > But Stata is performing the regression for the nine first decils and
> > for the quantile 1 (I think, because in the output I have the
> > estimation results for the: q10 q20 ....q90 q1).
> >
>
> The words we use are confusing; 'decile' is used for both the interval
> containing 10% of the data and for the upper cutpoint for this interval.
>
> P    Before printing, think about the environment
> =================================
> Ronan Conroy
> [email protected]
> Royal College of Surgeons in Ireland
> Epidemiology Department,
> 120 St Stephen's Green, Dublin 2, Ireland
> +353 (0)1 402 2431
> +353 (0)87 799 97 95
> http://www.flickr.com/photos/ronanconroy/sets/72157601895416740/
>
>
> *
> *   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/
>

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