Skip to content
Prev 77944 / 398502 Next

Weighting factor

On Tue, 27 Sep 2005, Ferran Carrascosa wrote:

            
You should be able to do this with postStratify() in the survey package 
(if you have joint distributions for the variables) or calibrate() if you 
have only marginal distributions.

You would need to create a survey design object, use postStratify() or 
calibrate() on it, then use weights() to extract the weights.

 	-thomas