Hello,
I am interested in assigning a treatment to a firm if it was domestic (foreign=0) in year 2003 and foreign (foreign=1) in 2004. All firms for wich this criterion holds should be counted as treated (for alle years). However, a problem is the fact that this implies that each firm has to be evaluated on two consecutive rows. A further problem is that firms are not always available for all of this years. I am not having an idea how to approach.
Further the dataset contained 35000 firms s.t. it is impossible to go through it by hand.
Thank you very much in advance.
Related Posts with Panel Data - treatment*for group data based on within group characteristics
gsem with dependent binary variablesHello statalisters, Using Code: webuse womenwk , one can estimate a Heckman model in gsem as outl…
Is there any way of using psacalc within a loop?I am running a fixed effects model using the -areg- command. Using Emily Oster's -psacalc-, I am loo…
Store p-values in a matrix after 'actest'Dear Statalist users, I am using the 'actest' command to conduct a serial correlation test after ti…
combined visual presentation of logistic regression resultsI am conducting logistic regressions with a dichotomous outcome (iatrogenic) and a single, continuou…
How to rename all the variables?Hi, I want to rename all the variables by adding _year to all of them at the end (eg. religion_2005…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data - treatment*for group data based on within group characteristics
Post a Comment