Hello everyone
I am reanalyzing DHS (nationally representative household survey) data from Nigeria on children's vaccination status. I am trying to fit a multilevel logistic model using the following code:
svyset hh1, weight(chweight) strata(hh6n)
svy: melogit measles || hh7n:
But get the following error message:
hierarchical groups are not nested within hh1
Which I don't think is true. I checked over and over again, and from what I can tell hh7n IS nested within hh1.
So I was trying to circumvent the problem by fitting the following model instead
melogit measles hh6n || hh7n: || hh1: , pweight(chweight)
From what I understand of survey analyses, these two should be equivalent, but I am not sure. Also because I don't seem to find any documentation of what svyset does 'in the background'.
Any thoughts on this would be highly appreciated!
Thanks, Sandra
I am reanalyzing DHS (nationally representative household survey) data from Nigeria on children's vaccination status. I am trying to fit a multilevel logistic model using the following code:
svyset hh1, weight(chweight) strata(hh6n)
svy: melogit measles || hh7n:
But get the following error message:
hierarchical groups are not nested within hh1
Which I don't think is true. I checked over and over again, and from what I can tell hh7n IS nested within hh1.
So I was trying to circumvent the problem by fitting the following model instead
melogit measles hh6n || hh7n: || hh1: , pweight(chweight)
From what I understand of survey analyses, these two should be equivalent, but I am not sure. Also because I don't seem to find any documentation of what svyset does 'in the background'.
Any thoughts on this would be highly appreciated!
Thanks, Sandra
Comment