Hi all, maybe it,S a little silly question, but i’m new in Time Series and Stata. I used a dataset for panel data and I want to confirm results by interrupted time series using the same data set. Basically I count on 26 states, 12 periods (2004 to 2015), and a balanced set, counting a total of 312 observations. The variable I used is the infant mortality rate (IMR) of all states with treatment period starting in 2010. I used the single unit model and as I mentioned trying to evaluate the possibility of any change in IMR trende after treatment. I used these codes do set data to time series, which worked fine in my first try. I wrote codes to set data and run itsa for a specific state (id = 20) as follows;
Code do set data: . tsset id t (id = state code, 1...26 and t = years, 2004...2015)
Code to run itsa: . itsa imr, single treatid(20) trperiod(2010) lag(1) posttrend figure
As I said, it came up with results which unfortunately I cleared before saving, and now when I try to run the same code I receive the error message “_t already defined”.
I do not understand why these codes worke properly and now, even if I start all over, it shows this message over and over.
Someone may halp me to fix this.
Thank you all.
Related Posts with ITSA error message in time series: _t already defined
CMP model with interaction between endogenous and exogenous variablesDear all, I am having an endogenous variable X1 and an exogenous variable X2 and instruments Z1 and…
Clarification neededDear StataList, I am reading an interesting paper by Brons et al. (2017), where on page 812 they de…
The Monty Hall problem through permutations: can somebody translate the Stata code below to R code?Good morning, I have written a paper on how one can use the Monty Hall problem (with the 3 doors an…
which is the correct way to do three-way interactionDear statalist, I have 3 variables, say x, y, and z. x and y are dummies, z is continuous. I want t…
Sorting data in chronological orderHello, This post is similar to what I previously posted here: https://www.statalist.org/forums/for.…
Subscribe to:
Post Comments (Atom)
0 Response to ITSA error message in time series: _t already defined
Post a Comment