I have overcome the second-level weight issue with meglm for multilevel two-stage sampled survey data having only the final weight.
Individual students were randomly selected from classes (psu) in schools (strata), which were randomly selected in each state.
The first-level weight in these data is set to 1.
The remaining question is how to specify the svyset command.
Does svyset state, weight(weight2) || _n, weight(weight) look correct,
where state is the first level (cluster) variable; weight2 is its weight, which is constant; _n is to indicate random sampling of individuals at the second level, and weight is the first level weight?
The svy: melogit command is now running with the above survey specifications and is taking a long time.
Also, strata are not accounted for explicitly in the model? Is this okay? Can it be incorporated in the model outside of svyset?
Individual students were randomly selected from classes (psu) in schools (strata), which were randomly selected in each state.
The first-level weight in these data is set to 1.
The remaining question is how to specify the svyset command.
Does svyset state, weight(weight2) || _n, weight(weight) look correct,
where state is the first level (cluster) variable; weight2 is its weight, which is constant; _n is to indicate random sampling of individuals at the second level, and weight is the first level weight?
The svy: melogit command is now running with the above survey specifications and is taking a long time.
Also, strata are not accounted for explicitly in the model? Is this okay? Can it be incorporated in the model outside of svyset?
Comment