Hello,
I am using the csdidcommand to estimate staggered difference-in-differences models. My dataset contains over 200,000 observations. I'm running the following command:
csdid y, ivar(stock_code) time(virtual_time) gvar(event_point_zero) agg(simple) wboot(reps(10000)) rseed(42) long2
Issue:
During execution, the command prints many dots (.) and occasionally an "x". After a considerable time, the process fails with the error:
too many variables specified
Context and attempted solution:
My data is at a monthly frequency.
When I aggregate the data to a quarterly frequency, the same command runs successfully without error.
Question:
I am uncertain whether this is a limitation of my approach or a constraint of Stata (MP version) when handling a large number of time periods and groups. Could someone help me understand the cause and suggest a solution?
Thank you.
I am using the csdidcommand to estimate staggered difference-in-differences models. My dataset contains over 200,000 observations. I'm running the following command:
csdid y, ivar(stock_code) time(virtual_time) gvar(event_point_zero) agg(simple) wboot(reps(10000)) rseed(42) long2
Issue:
During execution, the command prints many dots (.) and occasionally an "x". After a considerable time, the process fails with the error:
too many variables specified
Context and attempted solution:
My data is at a monthly frequency.
When I aggregate the data to a quarterly frequency, the same command runs successfully without error.
Question:
I am uncertain whether this is a limitation of my approach or a constraint of Stata (MP version) when handling a large number of time periods and groups. Could someone help me understand the cause and suggest a solution?
Thank you.

Comment