Statalist The Stata Listserver


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

st: panel data


From   "Siddharth Kharkar" <siddkhar@yahoo.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: panel data
Date   Mon, 10 Jul 2006 14:05:55 -0400

Dear Sir,
I apologize if my email sounds na´ve... But if those are the only things you
want to do, would converting the data from long to wide format help?

Then, you could possibly have a variable "SelfEmployedAtSomePoint"

Gen SelfEmployedAtSomePoint="No"
Replace SelfEmployedAtSomePoint="Yes" if
employment1=="self-emp"|employment2=="self-emp"....

Tab SelfEmployedAtSomePoint
List personal_number year1 employment1 year2 employment2..... If
SelfEmployedAtSomePoint=="Yes"


Again, I apologize if my reply sounds na´ve, but I hope it helps.

Warm regards,
Siddharth.




Date: Sun, 09 Jul 2006 17:50:25 +0200
From: "Andrey V. Ivanov" <aivanov@rumms.uni-mannheim.de>
Subject: st: panel data

Hi, all.

Suppose I have the following data:

personal_number	employment	year
1			perm		1997
1			perm		1998
2			un-Emp	1997
2			self-emp	1998
3			perm		1997
3			self-emp	1998
4			self-emp	1997
4			perm		1998

Now, I want Stata to tell me how many people were self-employed in this
data-set at SOME point in time. (3)

Next, I also want stata to list the whole employment history of anyone who
has been self-employed at SOME point in time.

Could you please assist me?

Many thanks
andrey

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006
 


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index