Status:Closed    Asked:Feb 27, 2017 - 01:26 PM

Does the stata bride code creating onerace for racesing have the same distribution of values?

I translated the STATA race bridge code to SAS. When I create onerace in SAS and run frequency distributions of racesing and onerace by year using perwt as the weighting variable, I get completely different distributions of the two race values by year. I double checked my code and as best as I can verify the SAS code matches the STATA code.

Is this to be expected?

Do you have the same question? Follow this Question

Staff Answer




I would expect some differences due to the fact that Stata and SAS have small differences in their default data type handling. Many of these values will be rounded differently based on if the variables are double precision or not. Would you mind posting your distributions?


Mar 06, 2017 - 08:45 AM

Report it


Help with SAS code for merging records based on family interrelationships
How does MPC code its race values for the variable “Race”? Some totals do not...
Will RACESING be added to 2015 ACS?
For my third "revised" extract, the codebook did not include SAS code for var...
Login   |   Register

Recently Active Members

View More »

Share |