Right now I have data for multiple individuals spanning 365 days. Currently the files are saved like: (I made up the numbers here, it's not exactly height and weight I'm using)
person1.csv - inside is just delimited like
date;height;weight
1994-01-01;165;79.0
1994-01-02;165;79.3
... and so on.
Then the second file person 2.csv, with date and variables separated with ;. And so on to the 200th person.
What I'm having trouble is trying to name them all when imported to Stata, for example I want Stata to recognize them as
person 1;1994-01-01;165;79.0
person1;1994-01-02;165;79.3
...
person2;1994-01-01;140;60.0
person2;1994-01-02;141;60.3
...
person200;1994-01-01;150;70.0
...
person200;1994-12-31;151;74.0
Something to that effect, so I can run fixed effects or other panel estimations. I was wondering how this is possible? Thank you in advance!
person1.csv - inside is just delimited like
date;height;weight
1994-01-01;165;79.0
1994-01-02;165;79.3
... and so on.
Then the second file person 2.csv, with date and variables separated with ;. And so on to the 200th person.
What I'm having trouble is trying to name them all when imported to Stata, for example I want Stata to recognize them as
person 1;1994-01-01;165;79.0
person1;1994-01-02;165;79.3
...
person2;1994-01-01;140;60.0
person2;1994-01-02;141;60.3
...
person200;1994-01-01;150;70.0
...
person200;1994-12-31;151;74.0
Something to that effect, so I can run fixed effects or other panel estimations. I was wondering how this is possible? Thank you in advance!

Comment