Announcement

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

  • How teffects nnmatch deal with mix covariates (numerical and multilevel) ?

    Hi everyone,

    I am studying how "some" treatment (for the sake of confidentiality I am not allowed to explain exactly what this treatment is) can effect interest rate. i have two kinds of covariates, numerical and categorical ones. For categorical variables I have something like, for example, x = {0,1,2} and m = {1,2,3,4,...39}. I have tried to use -teffects nnmatch- using operator "i." and without "i." for such a variable and the results are different. So, my question is how the algorithm works? How it´s calculate the distance in the nearest neighbor algorithm ?

    To be more clear,
    Code:
    M
    and
    Code:
    Prz
    are continuous variables and
    Code:
    Emp d NUTS cl c1 cod
    are categorical variables with Emp being the only dummie (i.e, it is 0 or 1) the other ones are multilevel.

    Then I run the two commands described below
    Code:
    teffects nnmatch  (TAA M Prz i.Emp i.d i.NUTS i.cl i.c1 i.cod) (treat), atet  biasadj(M Prz) vce(robust)
    and

    Code:
    teffects nnmatch  (TAA M Prz Emp d NUTS cl c1 cod) (treat), atet  biasadj(M Prz)  vce(robust)
    As I said, the results are quite different. So, how the distance showed below is calculated in this two different cases (with and without "i." operator)?

    Click image for larger version

Name:	Sem título.jpg
Views:	1
Size:	140.4 KB
ID:	1446071



    Thank you very much for your attention!
    Kind Regards,
    Mauricio.

  • #2
    My questios is, more precisely, with respect to the vector of covariates xi = { xi1, xi2 , ...} because in the case of mixed covariates how am I supposed do calculate the distance between, say, xi = { 1000, 120, A, insurance} and xj = { 3000, 30, B, manufacturing } ? Is it more appropriated to use - teffects psmatch - in this case ?

    Again, thank you very much!
    Kind Regards,
    Mauricio.

    Comment

    Working...
    X