I run rake function from the survey package of R in my data and got the weights by calling the weights() function. Sample code
small.svy.unweighted <- svydesign(ids=~1, strata = ~HZIP ,data=HHdata, weights=~Weights_1) small.svy.rake <- rake(design = small.svy.unweighted, sample.margins = list(~agecats, ~zip), population.margins = list(age.dist, zip.dist))
Are the weights return by weights(small.svy.rake) function become the new samplings weights? That is, if i run the analysis in the eg. SPSS, the weights will be my input weights?
How does the algorithm manually computes the weights? I tried to manually compute it but I could not get the same weights return by weights().