Hi all
In the paper "On Synthetic Difference-in-Differences and Related Estimation Methods in Stata" section 4.5, Other Parameters, the authors mentioned that to obtain weights we can use returnweights option; however, it seem that this option is not available anymore. As a result, I am trying to get those using e(lambda)[1..time,1] and e(omgea)[1..Nc]. To generate the weight I am using following code:
I get this error: matrix operators that return matrices not allowed in this context.
I really appreciate it if you please help me to get those weights as mentioned in the paper
In the paper "On Synthetic Difference-in-Differences and Related Estimation Methods in Stata" section 4.5, Other Parameters, the authors mentioned that to obtain weights we can use returnweights option; however, it seem that this option is not available anymore. As a result, I am trying to get those using e(lambda)[1..time,1] and e(omgea)[1..Nc]. To generate the weight I am using following code:
Code:
matrix lambda = e(lambda)[1..12,1] matrix omega = e(omega)[1..5620,1] g weight = lambda * omega
I really appreciate it if you please help me to get those weights as mentioned in the paper
Comment