Good morning,
This is my first time posting and I’m hoping someone might be able to recommend a solution for the below issue. Briefly, I am regressing a categorical variable using mlogit but I am using panel data of respondents within households. I need to account for both attrition and household effects, and was attempting to run:
mlogit depvar indepvar control1 control2 control3 [pweight = panelweight], vce(cluster household panelvar)
However, Stata will not allow two cluster items in vce. I’ve also tried:
svyset panelvar [pweight=panelweight]
svy: mlogit depvar indepvar control1 control2 control3, vce(cluster household)
However, Stata will not allow the vce command when using the svy command.
How can I use vce to cluster at two levels? Is there an alternative command I should use instead?
Many thanks,
Sarah
This is my first time posting and I’m hoping someone might be able to recommend a solution for the below issue. Briefly, I am regressing a categorical variable using mlogit but I am using panel data of respondents within households. I need to account for both attrition and household effects, and was attempting to run:
mlogit depvar indepvar control1 control2 control3 [pweight = panelweight], vce(cluster household panelvar)
However, Stata will not allow two cluster items in vce. I’ve also tried:
svyset panelvar [pweight=panelweight]
svy: mlogit depvar indepvar control1 control2 control3, vce(cluster household)
However, Stata will not allow the vce command when using the svy command.
How can I use vce to cluster at two levels? Is there an alternative command I should use instead?
Many thanks,
Sarah
Comment