Hi!
I am working with ACS microdata and used the command below to create counts of foreign-born people who moved from one US state (migplac1) to another (statefip).
* contract the data, weighting by 'perwt', keep only US states, remove people who moved within state
contract migplac1 statefip [fw=perwt] if fb==1, zero
keep if migplac1 != 0 & statefip != 0
drop if migplac1 > 100
drop if migplac1 == statefip
I then realized I wanted to use replicate weights instead. I ran: svyset[pweight=perwt], vce(brr) brrweight(repwtp1-repwtp80) fay(.5)mse
I would like to recreate the estimates based on the code above using replicate weights instead of perwt. How do I do this? Nothing I am trying works.
I know svy:contract...etc does not work. Does anyone know a workaround?
Thanks for your help!
I am working with ACS microdata and used the command below to create counts of foreign-born people who moved from one US state (migplac1) to another (statefip).
* contract the data, weighting by 'perwt', keep only US states, remove people who moved within state
contract migplac1 statefip [fw=perwt] if fb==1, zero
keep if migplac1 != 0 & statefip != 0
drop if migplac1 > 100
drop if migplac1 == statefip
I then realized I wanted to use replicate weights instead. I ran: svyset[pweight=perwt], vce(brr) brrweight(repwtp1-repwtp80) fay(.5)mse
I would like to recreate the estimates based on the code above using replicate weights instead of perwt. How do I do this? Nothing I am trying works.
I know svy:contract...etc does not work. Does anyone know a workaround?
Thanks for your help!