Hi everyone,
I have the following sort of empirical dilemma. To match observations between two separate datasets, I manually created an identifier that's common. However, when I type in an id, it seems to round it up. For example, using compustat data, I do:
replace firmid=19999997 if conm=="ACCRETIVE HEALTH INC"
However, stata rounds it to: 19999996.
How can I avoid this since it's producing duplicate estimates when I try to match the two datasets together? I did some simple searches online, but didn't find anything -- only things showing up on google were how to round numbers, not to avoid rounding!
(I should also note that I've been playing around with the "format" feature, e.g., format firmid %12.0f, but it's not working 100% as hoped.)
Thank you!
I have the following sort of empirical dilemma. To match observations between two separate datasets, I manually created an identifier that's common. However, when I type in an id, it seems to round it up. For example, using compustat data, I do:
replace firmid=19999997 if conm=="ACCRETIVE HEALTH INC"
However, stata rounds it to: 19999996.
How can I avoid this since it's producing duplicate estimates when I try to match the two datasets together? I did some simple searches online, but didn't find anything -- only things showing up on google were how to round numbers, not to avoid rounding!
(I should also note that I've been playing around with the "format" feature, e.g., format firmid %12.0f, but it's not working 100% as hoped.)
Thank you!
Comment