Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: collapse _all


From   "Thomas Erdmann" <[email protected]>
To   <[email protected]>
Subject   st: collapse _all
Date   Fri, 26 Jan 2007 14:14:34 +0100

Hi - 

I have different "problem" like with the graphs with adressing all variables
when I use -collapse- .

What I want to do is basically:
collapse _all, by (id year)

i.e. just taking the mean of monthly observations per year and company. But
Stata tells me then:

id may not be both target and by()

So is there a way to keep all numerical variable by mean without specifying
them separately in the clist of -collapse- ?

Thanks. 
- Tom

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