I have 2012-2018(Aug) monthly data, there are 80 (6*12+8) time periods. 52 areas in the data set
I have Year and Month in the data. How do I control area specific trend?
coding of the time variables:
year_month: 1-80
year:2012-2018
year sequence: 1-7
month_sequence:1-12
is the below code correct for controlling area specific time trend?
xtset area_id year_month
xtreg Y X c.year_sequence*i.area_id c.month_sequence*i.area_id To approve a single suggestion, mouse over it and click "✔"
Click the bubble to approve all of its suggestions.
Log in
to use Ginger
Limited mode
Is the below code correct for controlling
×
Related Posts with area specific linear time trend
''omitted because of collinearity"While I am running regression in Stata, many times a variable is dropped due to collinearity. In the…
Stationarity test for residual in panel dataHello everyone, I want to test the statinarity (panel) for the residual in my regression. I use Cod…
Double Selection in one equationIf double selection in one equation exists, which command do I have to use? I studied Heckman twost…
Generating a table that shows multiple ANOVA resultsDear Statalist, I want to generate a table that neatly summarizes a set of ANOVA results, just like…
Replicate Values from one column to the other in an n-dimension arrayDear Statalists, I am a new Mata user and attempt replicating values from one column to the other i…
Subscribe to:
Post Comments (Atom)
0 Response to area specific linear time trend
Post a Comment