Dear Statalist,
I am now setting the data to write the DID.
However, there is a problem with the arrangement of my data to use DID.
My data are like as below:
ID | revenue2007 | revenue2008 | revenue2009 | asset2009 | asset2010 | asset2011 | manufacture | wholesale | others
While manufacture, wholesale, and others are dummy variables. (Form of 0 1)
I would like to set the above data as follows.
ID year revenue asset type of business
1 0(2007)
1 1(2008)
1 2(2009)
1 0
1 1
1 2
1 0
1 1
1 2
2 0
.
.
where year 0 represents 2007, 1 does 2008, and 2 does 2009.
(Suppose the treatment was treated at 2008)
I tried to use 'reshape', but I do not know how to do it.
Thanks in advance.
HJ
Related Posts with Questions about Data Setting
F-statistic from the joint test of the significance of a particular set of coefficientsHi, I employ panel data by using the code: xtset execid fyear Now i want to reg the following mode…
Repeated anova with changing treatmentsHello, I have some problems with the repeated anova. Basically, I observed certain reactions of pa…
(I NEED HELP) How to manually compute generalized residuals and score for a right-censored Tobit model?Hello, Statalist fellows! I'm finishing my bachelor's thesis, in which I'm running a right-censored…
r(198) programm error: code follows on th same line as open bracesI'm working on two loops, one for downloadig data from a website from stata and the other one for tr…
Regressing an interaction of two independent variables, of which one should get lower and one higher, on a dependent variableHi everyone! I want to perform a linear regression with two interacting independent variables but I…
Subscribe to:
Post Comments (Atom)
0 Response to Questions about Data Setting
Post a Comment