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]

From |
Maarten Buis <maartenlbuis@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: need to sum several variables in a row |

Date |
Tue, 17 Dec 2013 14:28:11 +0100 |

On Tue, Dec 17, 2013 at 2:18 PM, Raffaele Palladino wrote: > I have to calculate a new variable that is the total amount of money > from several variables, all displaied in a row. Rather than using the > g = var1+var2 etc... which could be annoying considering the amount of > variables and the fact that I have to repeat this command several > times I was trying to look on internet for a solution. From this > statalist I found users who suggested to use the command rowtotal but > apparently I can`t use it on stata 11, my version. Is it correct? It > keeps saying "unknow function rowtotal ()" That is incorrect, see: -help egen-. Hope this helps, Maarten --------------------------------- Maarten L. Buis WZB Reichpietschufer 50 10785 Berlin Germany http://www.maartenbuis.nl --------------------------------- * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: need to sum several variables in a row***From:*Nick Cox <njcoxstata@gmail.com>

**References**:**st: need to sum several variables in a row***From:*Raffaele Palladino <palladino.raffaele@gmail.com>

- Prev by Date:
**st: need to sum several variables in a row** - Next by Date:
**Re: st: need to sum several variables in a row** - Previous by thread:
**st: need to sum several variables in a row** - Next by thread:
**Re: st: need to sum several variables in a row** - Index(es):