I am attempting to obtain the autocorrelations and partial autocorrelations and to perform the Dickey-Fuller test on the first difference of variable OutputValue, i.e. d.OutputValue. However, my panel data has output by country and sector over 55 years with missing data on some time and sectors in some countries. This has led Stata to believe I am using multiple panels. Previously, my commands to identifying the data as panel data are as follows:
egen id = group(Country Sector)
xtset id Time
format Time %ty
sort id Time
I would like d.OutputValue to be the first difference of OutputValue within a particular sector in a country. I would also like to perform ac, pac and dfuller on d.OutputValue. Would that be possible? Thank you in advance!
Related Posts with Error of sample contain multiple panels: Panel data with multiple identifiers
Difference in differencesArray b …
Using the Putexcel command inside a loopGood morning everyone, I would like to use (if possible) the putexcel command in a loop to create th…
split a variableGood evening I use stata 14 and I have a variable that groups the different equipments that the hous…
Download stock returns from Yahoo Finance via returnsyh (ssc)Hi, I have downloaded the mvport package from ssc (ssc install mvport), and use the command returns…
Creating Dummy Variable for Two Events in Dataset and Restricting Regression by Time PeriodI am testing effect to two events in a dataset with a time dummy variable (post). For instance, my f…
Subscribe to:
Post Comments (Atom)
0 Response to Error of sample contain multiple panels: Panel data with multiple identifiers
Post a Comment