I'm trying to weight survey data in R. I'm using Stata code as a reference.
The code used on that program to weight my data was:
svyset [iw=wgtp], vce(sdr), sdrweight(wgtp1-wgtp80) mse
I translated that code into R code like this:
svydesign(ids = ~1, data = house.data, weights = (~wgtp1-wgtp80))
However I am unsure whether this is a correct translation and if I am applying this correctly in R. Any insight and suggestions would be greatly appreciated!