Good afternoon,
Attached is an extract of my dataset. I have cross-sectional data with two variables (GRSSWK1 and GRSSWK5, measuring the gross weekly wage in quarter 1 and quarter 5, respectively), capturing two different periods for observations 2956, 2597 and 2958.
I need to be able to transform this into panel data to assess a time-trend interaction, for example creating 't=1, 2' and a gross weekly wage variable for the same observation.
I'm aware one possibly way may be to duplicate and then match, however my econometrics and Stata knowledge aren't great, nor am I certain that I would be able to do this for 5000 observations (my full dataset) and other variables.
Any help would be greatly appreciated.
Array
.
Related Posts with Problem with converting a cross-sectional dataset into panel
calculating sd using rolling windowDear colleagues I have monthly return data and I wanted to calculate a rolling 3 year SD using mont…
Trying to label multiple variables using loopHi all, I am trying to label multiple variables at once using loop. For instance, variables q2_4_1…
Help Responding to Critique that Adjusted Wald F Test is not Appropriate for Weighted Examination of Change over Time in ProportionsI need to respond to a reviewer's critique of my use of an adjusted Wald F Test (extension of McNema…
How to create dummy variables for day of the week, day of the month etc.Hello, I am fairly new at using stata, thus since I want to control for time varying influences (my …
Replace value by max of previous valuesHello, I have the following panel dataset: clear input country_code year value 1 1990 2 1 1991 5 1 …
Subscribe to:
Post Comments (Atom)
0 Response to Problem with converting a cross-sectional dataset into panel
Post a Comment