Dear All, this is my first post here. Excuse me for doing anything wrong. I have a question I cannot find a solution for, even though I hope it is not too complicated.
I have panel data that is in a wide format containing individual survey responses over nine different waves. For some of my analyses, I need the panel data to be in a long format. To be able to reshape the data, however, I must have a variable representing the different waves, ie the time dimension. I know how to reshape the data, and create the ID-variable but I am not sure how to create the time-variable.
For now, the data includes nine different variables with the participants of each wave. It also includes nine variables with the start date of the survey and nine variables with the end date of the survey. Are these variables sufficient if I want to create a variable constituting the time component of my panel data in a long format? And how should I proceed with reshaping this?
Thanks in advance. If this were unclear, feel free to ask any questions.
//Tim
Related Posts with Generate time-variable for panel data in long format
Moderated Mediation in Panel Data analysisHi everyone, Please, can anyone guide me on conducting a moderated mediation model using panel data?…
Variable transformations and the meaning of . in chi2(2) columnHow I read these . signs in col chi2(2) in this picture? Array From stata instructions I have unde…
Fixed-effects in svy strata?Hi all, My query is regarding fixed-effects in stratified survey data. I am working with cross-sec…
output spearman correlationHello, I am trying to output spearman correlation matrix into rtf or excel using estpost but I am g…
inspecting and comparing same variable content in relation to other variablePlease am new to stata and need help in extracting wrong inputs in a dataset. The data set contains …
Subscribe to:
Post Comments (Atom)
0 Response to Generate time-variable for panel data in long format
Post a Comment