Question

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

avatar

Joe_Grover

Staff

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

0
0
Report it

OTHER QUESTIONS NEEDING ANSWERS

Why is the income wage variable incwage-capped? and how is the cap determined...
USA IPUMS 1980 ancestry variable -- mapping to country names
Did the version of database change since 2011?
Are DATANUM, SERIAL, and PERNUM the same in single-year and 5-year ACS sample...
How can I accurately calculate the median family income by state for families...
Detailed Variables Dropping From Dataset
Login   |   Register


Share |