Uau! This package is very interesting, very thank you Thomas. Thanks to all!
2005/9/27, Thomas Lumley <[EMAIL PROTECTED]>: > On Tue, 27 Sep 2005, Ferran Carrascosa wrote: > > > Hi everyone, > > > > I would like some package of R or any help to solve the next problem > > with a weighting fatcors: > > > > Giving a data matrix with dichotomous (2 or more) variables in columns > > and individuals in rows, and also a theorical distribution of the > > dichotomous variables I would like a row weight (one per individual) > > that transform the real distribution of variables to the theorical > > distribution. > > > > 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 > -- Ferran Carrascosa ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html