Hi all,
I am attempting to use the synth command from SSC in Stata 17. My panel is declared and balanced, with the identifying variable being "state" and the time variable being "yq", or year-quarter. Here is the regression code I am running:
What I believe this should be doing is a synthetic control, with log_salary as my dependent variable; nc_ban and unemp_rate as my independent variables; state #27 is my treated unit; and time period #7 is my treatment time.
When I run this, I get the following error:
If anyone has experience in solving this issue, please let me know. Also, if there is a superior synthetic control command that I should be aware of, let me know of that as well.
Here's a brief sample of my data:
I am attempting to use the synth command from SSC in Stata 17. My panel is declared and balanced, with the identifying variable being "state" and the time variable being "yq", or year-quarter. Here is the regression code I am running:
Code:
synth log_salary regressor, trunit(27) trperiod(7)
When I run this, I get the following error:
Code:
conformability error
Here's a brief sample of my data:
Code:
input byte state float yq double log_salary float unemp_rate strL employer int mode_naics4 long mode_naics6 str7 mode_soc float(state_indicator nc_ban regressor time_id n_periods) 1 248 437670.1901216507 2.807686 "na" 9999 999999 "29-1141" 0 0 0 1 10 1 249 382769.62862586975 2.410655 "na" 9999 999999 "29-1141" 0 0 0 2 10 1 250 533668.1899204254 2.7446864 "na" 9999 999999 "29-1141" 0 0 0 3 10 1 251 494575.55472278595 2.2074122 "na" 9999 999999 "29-1141" 0 0 0 4 10 1 252 687897.0628223419 2.410155 "na" 9999 999999 "29-1141" 0 0 0 5 10 1 253 715362.8459320068 2.1246212 "na" 9999 999999 "29-1141" 0 0 0 6 10 1 254 646168.2115402222 2.664786 "na" 9999 999999 "29-1141" 0 1 0 7 10 1 255 559646.9545383453 2.56782 "na" 9999 999999 "29-1141" 0 1 0 8 10 1 256 574696.7539777756 3.062055 "na" 9999 999999 "29-1141" 0 1 0 9 10 1 257 577435.1048574448 2.6840746 "na" 9999 999999 "29-1141" 0 1 0 10 10 2 248 67714.02457523346 5.531702 "na" 9999 999999 "29-1141" 0 0 0 1 10 2 249 128230.57886981964 4.283454 "na" 9999 999999 "29-1141" 0 0 0 2 10 2 250 96757.19954872131 3.2681124 "na" 9999 999999 "29-1141" 0 0 0 3 10 2 251 107942.20741081238 3.880853 "na" 9999 999999 "29-1141" 0 0 0 4 10 2 252 143492.30472183228 4.614276 "na" 9999 999999 "29-1141" 0 0 0 5 10 2 253 181403.81960201263 4.152476 "na" 9999 999999 "29-1141" 0 0 0 6 10 2 254 187058.0700559616 3.7621574 "na" 9999 999999 "29-1141" 0 1 0 7 10 2 255 173168.7288799286 4.398994 "na" 9999 999999 "29-1141" 0 1 0 8 10 2 256 255772.6127767563 5.041393 "na" 9999 999999 "29-1141" 0 1 0 9 10 2 257 222225.07153987885 4.5681987 "na" 9999 999999 "29-1141" 0 1 0 10 10
