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
Array