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

st: RE: RE: series of value labels and collapse


From   [email protected]
To   [email protected]
Subject   st: RE: RE: series of value labels and collapse
Date   Tue, 08 Jul 2003 19:47:42 +0200 (MES)

Thank you Nick for suggesting this nice solution to my problem. For those 
interested the alternative to my previous posting is:
*=====================================
u ctypes, clear 
drop *_*
egen cmiss = rmiss(c?) 
gen cpresent = 3 - cmiss
tab cpresent cmixtures
drop cmixtures-cpresent 
reshape long c, i(id plot) 
drop if area == . 
drop if id == . 
drop if c == . 
su 
bysort id plot : gen Area = area / _N 
tabstat Area, by(c) s(sum)
*======================================
Best regards,
Adama
*
*   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