I'm keen to learn how to correctly apply survey weights in R. I tried to multiply the variable to create a new one but I didn't get anything intelligible out e.g.:
data2019$income_weighted <- data2019$income*data2019$population_weight
Here is the code in SPSS that I would usually run:
FREQUENCIES income.
WEIGHT BY population_weight.
FREQUENCIES income.
Grateful for any suggestions.
Thanks!