Hello everyone, I want to know how to go from panel data to time series. I have this dataset:
ID year cons
1 2008 19600
1 2010 24400
1 2012 29000
1 2014 24200
1 2016 16200
2 2008 9600
2 2010 15000
2 2012 13680
2 2014 15480
2 2016 18425
3 2008 17900
3 2010 18700
I would like to have it as:
year 1 2 3
2010 19600 9600 17900
2012 24400 15000 18700
2014 29000 .................
2016 ........................
Thank you a lot
Related Posts with from panel data to time series
esttab: names of categorical variables not shownHello, I am currently trying to display the results of 4 logistic regression analyses using esttab.…
Identifying same type of name in string variableHello users, i have dataset where one variable is string and it contain name, weight etc. of the pro…
Problem with pvar and pvargranger command & interpretationDear Stata Community, I would like to hear your opinion on the results I get from the reverse causa…
How to specify Study ID using metaprop command in meta-analysis output table?Hello I am struggling to specify study ID variable in the metaprop command below: metaprop num deno…
FiltersHow do I filter out respondents which have missing values in more than 50% of the variables I want t…
Subscribe to:
Post Comments (Atom)
0 Response to from panel data to time series
Post a Comment