Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Odd results from wordcount

From   "Nick Cox" <>
To   <>
Subject   st: RE: Odd results from wordcount
Date   Fri, 19 Dec 2003 15:34:40 -0000

Others have explained the apparent anomaly
with -wordcount()-.

I had a go at part of this problem with -selectvars-
on SSC.

It's my impression that -foreach- provides
all the machinery you need otherwise. I would
be wary of reinventing it.


> I am in the process of writing a short program which will
> repeat multiple
> commands for many variables and combinations of variables.
> In general the
> user spesifies a variable list and commands, and the
> commands are repeated
> through all possible combinations of the variables.
> To run the loops the correct number of times I need to know how many
> variables are listed by the user. I do this through a
> wordcount of the
> variablelist. However, the wordcount seems to be
> unreliable.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index