I'm wondering if anyone knows how to convert this Stata code to R code (for a student of mine).
Here is the Stata code, specifying that the data are weighted ("PWEIGHT") and also use successive difference replicate weights (PWEIGHT1-PWEIGHT80).
Here is the Stata code, specifying that the data are weighted ("PWEIGHT") and also use successive difference replicate weights (PWEIGHT1-PWEIGHT80).
Code:
svyset [pweight=PWEIGHT], sdrweight(PWEIGHT1-PWEIGHT80) vce(sdr) mse
Comment