I have a question that is more statistical than r-specific I have to recode a variable into quartiles, and I have weighted individuals. To calculate the quartiles that will serve me to recode the variable, should I use the weight or not? -- View this message in context: http://r.789695.n4.nabble.com/Weighting-and-recodification-tp4160876p4160876.html Sent from the R help mailing list archive at Nabble.com.
On Dec 5, 2011, at 10:19 AM, SilvaForever wrote:> I have a question that is more statistical than r-specific > > I have to recode a variable into quartiles, and I have weighted > individuals. > To calculate the quartiles that will serve me to recode the > variable, should > I use the weight or not?I would think that an affirmative answer should raise the follow-on question of "how", and an R-specific answer would be `wtd.quantile` in the Hmisc package. -- David Winsemius, MD West Hartford, CT