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

st: systematically creating new observations


From   daphna <[email protected]>
To   [email protected]
Subject   st: systematically creating new observations
Date   Fri, 18 Jun 2004 10:59:42 -0700

Hello-

I am wondering if anyone can recommend a way to systematically create observations.

Suppose I have a set of observations that looks something like this:

#Points
Female415896
Male420897


What I want to do is create a new observation (not a new variable), called ALL so that the data would look something like this:

#Points
Female415896
Male420897
All8351793


Of course, I need to do this more than once. I have to do it for thousands of groups.

Is there a systematic way to add such an observation?

It seems pretty obvious but I cannot seem to figure it out.

Thanks so much for your help.

D




=====================================================================

Daphna Bassok

Research Assistant
Center For Research On Education Outcomes
Stanford University
Stanford, CA 94305

Phone: (650) 725-6169

=====================================================================

*
* 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/




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