Dear Forum members,
I would like to test if a categorical survey variable is statistically different from population (i.e. census) data.
I found the -csgof- command which would be a good solution. However, I would like to account for the survey design, and csgof does not support -svy-. A similar command, mgof, does support -svy- but I do not seem to be able to define the population values.
More in detail, using -csgof- I can define the exact distributions of the population data: e.g. csgof age, expperc(25 22 18 20 15). When I try the same with -mgof- and display the percentages (mgof age = (25 22 18 20 15), svy percent), it shows that the values defined were not taken into account.
It would be great if you could help me with a solution for this or if you could recommend another method.
Thanks a lot!
Susanne
I would like to test if a categorical survey variable is statistically different from population (i.e. census) data.
I found the -csgof- command which would be a good solution. However, I would like to account for the survey design, and csgof does not support -svy-. A similar command, mgof, does support -svy- but I do not seem to be able to define the population values.
More in detail, using -csgof- I can define the exact distributions of the population data: e.g. csgof age, expperc(25 22 18 20 15). When I try the same with -mgof- and display the percentages (mgof age = (25 22 18 20 15), svy percent), it shows that the values defined were not taken into account.
It would be great if you could help me with a solution for this or if you could recommend another method.
Thanks a lot!
Susanne
Comment