# Reweighting sample to reflect census?

I'm working on a revision of a manuscript. I have a longitudinal cohort of adolescents that were followed throughout junior high school. One of the reviewers considers the attrition to be considerable, and asks me to reweight the sample to reflect the census on certain characteristics, so that the results can be compared to the general population that the sample aims to reflect.

I understand the idea, but how do I go about to do this? I mean, say that I have a divorce rate (one of the characteristics suggested by the reviewers) of 10 percent in my sample and 15 percent in the relevant general population, how do I reweight my sample to reflect this? Is is it that simple that the 10 percent with divorced parents get a weight of 15/10 = 1.5 and the 90 percent with parents that are not divorced get 85/90 = 0.94, and then I just use this weight in the calculations? Do anyone have materials to good tutorials regarding this issue?

$$w_i^{\rm PS} \leftarrow w_i^{\rm source} \frac{\mbox{Population total in cell c : i \in c}}{\sum_{j \in c} w_j^{\rm source}}$$