The code
if wordcount("`rhs'")<=wordcount("`varlist'") {
local graphvars "`rhs'"
}
can be translated
if `: word count `rhs'' <= `: word count `varlist'' {
local graphvars "`rhs'"
}
This should work in Stata 7 too. It may not be
documented for 7. Make sure you use the correct single
quotes.
Of course, you should upgrade to Stata 8 too....
Nick
[email protected]
Puja Vasudeva
>
> I found mention of grqreg.ado in the Statalist archives for
> graphing the
> coefficients of a quantile regression
> (<http://www.stata.com/statalist/archive/2004-01/msg00552.html>).
>
> My problem is that I use Stata 7 and this ado file was
> written for Stata 8.
> I can change most of the syntax to make it run in Stata 7 -
> except the
> function "wordcount". Does anyone have a modified version to
> run on Stata
> 7? Failing that, can anyone tell me the Stata 7 equivalent of
> wordcount?
*
* 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/