[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Re: egen total()
Right - I often try to use the varlist when I should be using the
Thanks for pointing this out to me.
Kit Baum wrote:
>No, because egen total does not accept a varlist. It accepts an exp,
>as does generate. This is the source of your problem.
> total(exp) (allows
> creates a constant (within varlist) containing the sum
>of exp. Also
> see mean().
>Kit Baum, Boston College Economics
>An Introduction to Modern Econometrics Using Stata:
>On Nov 5, 2006, at 2:33 AM, Teresa wrote:
>> As it turns out, egen [var] = rowsum([varlist]) is equivalent to
>> egen [var] = total([varlist]).
>* For searches and help try:
* For searches and help try: