Bookmark and Share

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]

Re: st: RE: RE: Problem with grqreg


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: Problem with grqreg
Date   Wed, 5 May 2010 14:17:50 -0400

Martin--
That would be
loc tmp1 = wordcount("`rhs'")
which should be
loc tmp1 : word count `rhs'

On Wed, May 5, 2010 at 2:01 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> I bet there is some element in -grqreg- that truncates the -varlist-. Nick`s
> example no longer works with longer -varname-s:
>
>
> ***********
> clear
> set obs 100
> foreach v of newlist y nicksx1 nicksx2 nicksx3 nicksx4 nicksx5 nicksx6 {
>        gen `v' = rnormal()
> }
> sqreg y nick*, q(.10 .20 .30 .40 .50 .60 .70 .80 .90) reps(100)
>
> grqreg, cons ci ols olsci scale(1.1)
> ***********
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Nick Cox
> Sent: Mittwoch, 5. Mai 2010 19:47
> To: [email protected]
> Subject: st: RE: Problem with grqreg
>
> I tried this without problems:
>
> clear
> set obs 100
> foreach v in y x1 x2 x3 x4 x5 x6 {
>        gen `v' = rnormal()
> }
> sqreg y x1-x6, quantile(.10 .20 .30 .40 .50 .60 .70 .80 .90) reps(400)
>
> grqreg, cons ci ols olsci scale(1.1)
>
> So, my only guess is that this is something to do with your data.
>
> Nick
> [email protected]
>
> Michael C. Morrison
>
> First I run sqreg  with the following commands:
>
> set seed 10101
> sqreg dep_var  iv1 iv2  iv3 iv4 iv5 iv6, quantile(.10 .20 .30 .40 .50
> .60 .70 .80 .90) reps(400)
>
> I want to use grqreg to plot the changes in the quantile slopes. I use
> the following command:
>
> grqreg, cons ci ols olsci scale(1.1)
>
> which should, I think, plot all 6 independent variables, plus intercept
> changes, with OLS and its ci added to each plot.
>
> The problem is that the command only prints the intercept and the first
> two covariates (with OLS and its ci).
>
> Thinking this was a limitation of available graph space I then tried to
> specify the next three covariates in the [varlist]:
>
> grqreg  iv3 iv4 iv5, cons ci ols olsci scale(1.1)
>
> Unfortunately I receive the same exact outcome as in the first grqreg
> command.
>

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index