Hi all,
Yesterday, as documented from this post (https://www.statalist.org/forums/for...p-of-countries) , I try to find a way to test my code by using inlist for firms in more than 10 countries as below and it seems not correct
reghdfe y x if inlist(GEOGN, "CHINA" "UNITEDS" "INDONESIA" "RUSSIAN" "MEXICO" "JAPAN" "PHILIPPINES" "VIETNAM" "SOUTHKOREA") | inlist(GEOGN,"COLOMBIA" "CANADA" "PERU" "MALAYSIA" "AUSTRALIA" "CHILE" "ECUADOR" "SINGAPORE" "NEWZEALAND"), a(TYPE2 INDC32#yr)
I am search and found that we also have another user-written code named inlist2 without restriction regarding the number of countries included. Therefore, I install inlist2 and run the code but STATA returns an error
reghdfe y x if inlist2(GEOGN, CHINA UNITEDS INDONESIA RUSSIAN MEXICO JAPAN PHILIPPINES VIETNAM SOUTHKOREA COLOMBIA CANADA PERU MALAYSIA AUSTRALIA CHILE ECUADOR SINGAPORE NEWZEALAND), a(TYPE2 INDC32#yr)
unknown function inlist2()
r(133);
(I also test with the quotation marks for each country).
Could you please help me to identify what is the problem?
Thanks
Related Posts with What is wrong with inlist2 in my code?
How to run the same macro-command(s) on multiple files (creating a loop)Hi! I am wondering how to run a macro-command on multiple files in a folder. The file-names (txt) a…
Creating Portfolios Sorted On Two VariablesHi Everyone, I have currency data that I want to initially sort on NFA(Net Foreign Assets) into two…
Using the Code substr() for numbers of regionsHello Everybody! I need help with a code. I have numbers of german's regions (e.g. 1002,1051 to 160…
Time Series, Range specification "if": "tin": "range" commands.Dear All, Thanks in advance! I was running a Vector Autoregressive Model (VAR) with time-series dat…
Why the researchers add controls variables in Panel Data regression?Dear Statalist, I am wondering about the reasons behind adding more control variables in the panel …
Subscribe to:
Post Comments (Atom)
0 Response to What is wrong with inlist2 in my code?
Post a Comment