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]

From |
"Jeff" <jbw-appraiser@earthlink.net> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: RE: AW: Problem with grqreg |

Date |
Wed, 24 Feb 2010 09:31:27 -0800 |

Thank you. That works, at least to the point of not getting an error message. However, I was under the impression that the purpose of the original question was to get a graph of the various CIs. After correcting my error by putting the "local" command on the next line, I tried, as in the original question: graph qreg, ci ols and alternatively grqreg, ci ols and got the following error message: qreggraph_g.new , ci ols: class member function not found I received the same error message when I used sqreg instead of qreg Perhaps I misunderstood the intention of the original question. If so my apologies. If, however the intention was to produce graphs, I still need further help. Thank you again in advance. Jeffrey B. Wolpin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Michael McCulloch Sent: Wednesday, February 24, 2010 9:03 AM To: statalist@hsphsun2.harvard.edu Subject: Re: st: RE: AW: Problem with grqreg Jeff, In the example provided to you by Martin Weiss, the -local- command is not on the -sqreg- line of the example, but on the next line. Try putting a carriage return just before -local- so your example matches his. Michael ************* sysuse auto, clear sqreg price mpg rep78 headroom trunk, quantiles(50 75 90) reps(20) local rhs : colnames(e(b)) di in r "`rhs'" ************* On Feb 24, 2010, at 8:57 AM, Jeff wrote: > This is a cool command. Though a novice with Stata, I use Stata 10, > one > of the reasons I purchased it was for the qreg function. However, I > was > not able to reproduce the command below: > > sqreg price mpg rep78 headroom trunk, quantiles(50 75 90) reps(20) > local > rhs : colfullnames(e(b)) > > When I use the above syntax, I get the error: option local not > allowed > > I however was able to reproduce: > sqreg price mpg rep78 headroom trunk, quantiles(50 75 90) reps(20) > > Can some help or explain. > > Thank you in advance > > Jeffrey B. Wolpin > Certified Business & Real Estate Appraiser > > Accredited Business Appraisals & Brokerage > > > > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin > Weiss > Sent: Tuesday, February 23, 2010 5:11 AM > To: statalist@hsphsun2.harvard.edu > Subject: st: AW: Problem with grqreg > > > <> > > The underlying problem is that _sqregtrace.ado, an auxiliary ado to - > ssc > d > grqreg-, strips of the column names from the "e(b)" matrix returned by > -sqreg-. The trouble is that for every quantile requested in the -q()- > option to -sqreg-, the names will be repeated, as seen in this example > featuring 3 quantiles: > > > ************* > sysuse auto, clear > sqreg price mpg rep78 headroom trunk, quantiles(50 75 90) reps(20) > local rhs : colnames(e(b)) > di in r "`rhs'" > ************* > > This macro "rhs" is then fed to a call to -postfile- which, rightly, > complains of duplicate entries. > > So the solution would be to prepend the "rhs" variables with the > quantile in > question, which could be achieved by modifying the above call to - > local > rhs > : colfullnames(e(b))-. > > > HTH > Martin > > > -----Ursprüngliche Nachricht----- > Von: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Michael > C. > Morrison > Gesendet: Dienstag, 23. Februar 2010 04:34 > An: statalist@hsphsun2.harvard.edu > Betreff: st: Problem with grqreg > > I'm having a problem with grqreg. > > After running a quantile regression with: > > sqreg pincp ageqtr retp schl_group semp sex wagp, q(.05 .10 .25 > .50 .75 .90 .95) > > I want to graph the coefficients of the quantile regression with > grqreg > with the following command: > > grqreg, ci ols > > However, I receive the following error: > > postfile: variable ageqtr already exists > r(110); > > (Note that "ageqtr" is the first independent var in the quantile > regression.) > > All my variables have labels. > > Any help would be greatly appreciated. I'm using Stata version 11, 64 > bit, Windows 7. > > Mike > > * > * 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/ > > > * > * 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/ > > > * > * 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/ Best wishes, Michael McCulloch Pine Street Foundation 124 Pine Street San Anselmo, CA 94960-2674 tel: 415-407-1357 fax: 206-338-2391 * * 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/ * * 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/

**References**:**Re: st: RE: AW: Problem with grqreg***From:*Michael McCulloch <mm@pinestreetfoundation.org>

- Prev by Date:
**st: AW: RE: AW: Problem with grqreg** - Next by Date:
**Re: st: hbox line** - Previous by thread:
**Re: st: RE: AW: Problem with grqreg** - Next by thread:
**st: AW: RE: AW: Problem with grqreg** - Index(es):