Hi!
Is there any way to use the svy command and generate a new variable at the same time?
As do this svy: mean var, over(area)
but generate a new variable with the results?
Best,
Alex
Is there any way to use the svy command and generate a new variable at the same time?
As do this svy: mean var, over(area)
but generate a new variable with the results?
area | var | area_mean (new var) |
rural | 1 | mean for rural |
urban | 1 | mean for urban |
urban | 0 | mean for urban |
rural | 0 | mean for rural |
urban | 0 | mean for urban |
rural | 1 | mean for rural |
rural | 1 | mean for rural |
rural | 1 | mean for rural |
Alex
Comment