Hello STATA community,
i am running a gravity model with exporter_time_FE, importer_time_FE and country pair fixed effect. I have the following command to do the fixed effects:
egen exp_time = group(exporter year)
tabulate exp_time, generate(EXPORTER_TIME_FE)
egen imp_time = group(importer year)
tabulate imp_time, generate(IMPORTER_TIME_FE)
egen pair_id = group(exporter importer)
tabulate pair_id, generate(PAIR_FE)
As I have 248 countries and 72 years in my data, that means i will have 248*72*2+248*248=97,216 dummy variables created, which should be fine for STATA/MP (with up to 120,000 variables).
However, with the command "tabulate exp_time, generate(EXPORTER_TIME_FE)" as well as "tabulate pair_id, generate(PAIR_FE)" the error message "too many values" occurs every time. I tried to reduce the length of year, and other solutions in the forum (create a loop), but this error message keeps poping up.
I would like to ask the community is there any walkaround to solve this "too many values" problem or if there is another way to do the exporter time fixed effects, importer time fixed effects and country pair fixed effects?
Looking forward to your answers/suggestions! Thanks!
Best Regards,
Zhixiao
Related Posts with Error 134: too many values
Report predicted probability from Probit model using outreg2Hi everyone, I'm using outreg2 to export my probit results to excel. Here's the command and output…
Reorder a matrix columns according to the values of one of its rowsI have a matrix A in STATA and I want to obtain a new matrix B with the same contents as A but with …
Using a single database for a Difference-in-Difference analysis with three time periodsHello all I'm assessing the impact of an intervention over the course of two years (from 2016-17, an…
Breusche and Pagan test for XTLOGIT REHello, I would like to test know which is suitable for random effect model or pooling regression mod…
Checking duplicates across multiple string variablesI have three different variables: student_name (string), friend_name(string) and school_grade(byte).…
Subscribe to:
Post Comments (Atom)
0 Response to Error 134: too many values
Post a Comment