Hello,
I'm new to posting at Statalist (long time lurker during my master's!), and would appreciate any help that people can offer.
I'm trying to survey set a large, nationally representative sample survey in Stata 16.1 to add a column of data to an existing, published table. The data file contains a set of 200 replicate final interview weights (using jackknife) and one full-sample final interview weight. I used the code below to surveyset my data, and ran a few tabs to see if I could get the same results as the published table before starting any new analyses. I have also added the code I used for tab, in case that's my issue somehow.
I'm getting results that are *slightly* different -- my UNW/obs numbers are the same, but my estimates and SE's are a little off (hundredths place difference, but it matters when rounding), so I'm thinking my issue is with the weights.
Could anyone tell me what I'm doing wrong?? I did 1:1 merge two files to start these analyses, but they both have the same replicate and final weight vars.
I'm new to posting at Statalist (long time lurker during my master's!), and would appreciate any help that people can offer.
I'm trying to survey set a large, nationally representative sample survey in Stata 16.1 to add a column of data to an existing, published table. The data file contains a set of 200 replicate final interview weights (using jackknife) and one full-sample final interview weight. I used the code below to surveyset my data, and ran a few tabs to see if I could get the same results as the published table before starting any new analyses. I have also added the code I used for tab, in case that's my issue somehow.
I'm getting results that are *slightly* different -- my UNW/obs numbers are the same, but my estimates and SE's are a little off (hundredths place difference, but it matters when rounding), so I'm thinking my issue is with the weights.
Could anyone tell me what I'm doing wrong?? I did 1:1 merge two files to start these analyses, but they both have the same replicate and final weight vars.
Code:
svyset [pw=AFNLWGT], jkrw(AREPWT1-AREPWT200) vce(jackknife) mse svy jackknife: tab A0204, se obs percent
Comment