Announcement

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

  • How to use command cem to get the exact results from command kmatch?

    I want to compare whether the results of user-command
    Code:
    cem
    and
    Code:
    kmatch
    are the same.

    How to replicates the results of kmatch with cem? Thanks!

    The code below seems the results are the same. However, for my own sample, the results are different. Why?

    Code:
    webuse cattaneo2, clear
    kmatch em mbsmoke (10(5)40) mage (0(5)60) fage (asis) prenatal1 mmarried fbaby (bweight), att wgenerate(cem_weight) replace
    su cem_weight
    cem mage (10(5)40) fage (0(5)60) prenatal1 mmarried fbaby
    su cem_weight
    Click image for larger version

Name:	iShot_2023-01-13_11.29.23.jpg
Views:	1
Size:	441.3 KB
ID:	1697064


    Last edited by Fred Lee; 12 Jan 2023, 20:38.
Working...
X