Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to write a command for nultiple condition with a character variable?

    Hi all, in my study, I want to study the subsample without observations from some countries without cutting the sample set

    My code is

    Code:
    xtreg TAT_w1 $tatcov_ post1treatvn post1 treatvn i.year1 if not (inlist(GEOGN,"CHINA","INDIA")), fe vce(cluster TYPE2)
    In this case I want to study the whole sample without observations from GEOGN(country) are "CHINA"or "INDIA"

    However the code above got the message

    Code:
    .      xtreg TAT_w1 $tatcov_ post1treatvn post1 treatvn i.year1 if not (inlist(GEOGN,"CHINA","INDIA")), fe vce(cluster TYPE2)
    not not found
    r(111);
    Could you please guide me, thank you.

  • #2
    Code:
    xtreg TAT_w1 $tatcov_ post1treatvn post1 treatvn i.year1 if !inlist(GEOGN,"CHINA","INDIA"), fe vce(cluster TYPE2)
    
    help operator

    Comment


    • #3
      Dear Joseph,

      It is sorted, thank you

      Comment

      Working...
      X