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
Interacting variables using command reg2hdfeHello, I have the following database: Code: * Example generated by -dataex-. To install: ssc inst…
Multinomial Logistic Regression - help needed!Hi all, I'm running a multinomial logistic regression and have 2 categories within my variable. Aft…
Help with adjusted kaplan meier curvesHi all, I am a medical student attempting to use STATA MP 16.1 to create adjusted KM curves. I was …
Difference between R2 measures with "xtreg"- and with "reg"-commandDear Community, for my master thesis I am conducting a Difference-in-Differences-Analysis. More spe…
Generate and ReplaceGood day Stata Friends, I am trying to generate and replace a variable in Stata. My study is on ad…
Subscribe to:
Post Comments (Atom)
0 Response to Error of sample contain multiple panels: Panel data with multiple identifiers
Post a Comment