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?
create Adjacency matrix nwcommandsHi, thank you very much for the incredible nwcommands and thank you very much in advance for your he…
Interpreting coefficients in logitDear Statalist, I'm running a logit model and one of my coefficients is -1.0954 and statistically s…
Blanks in polychoric matrixHi, does any one know the reason why the polychoric matrix often include blank values? Why is the th…
Factor variable and menlDear Statalist User, In a bioassay study I have four treatment groups denoted by A, B, C, D with 10…
Heteroscedasticity and auto correlation in dummy variablesi am calculating CSSDt and Rmt from a cross section data .I calculated the Q1 and Q3 from Rmt to sho…
Subscribe to:
Post Comments (Atom)
0 Response to What is wrong with inlist2 in my code?
Post a Comment