I'm trying to identify the correct commands in Stata 15.1 to create a logistic regression model for a binary outcome that would control for fixed effects at the state level and provide robust standard errors clustered at practice address. The data are from a one-time survey of ~240 physicians and we want to account for the fact that physicians in the same practice likely have correlation in their responses. The respondents came from 27 states and 180 practices.
A colleague suggested using clogit, but I received an error message of "groups (strata) are not nested within clusters" when I tried the following command:
clogit depvar indvars, group(state) vce(cluster practice_address)
For my continuous outcomes, I was advised to use: areg depvar indvars, cluster(practice_address) robust a(state). This ran without producing any error messages. In reading through this forum, it doesn't appear there's an analogous command for logistic regression.
Thanks for any advice!
Laura
A colleague suggested using clogit, but I received an error message of "groups (strata) are not nested within clusters" when I tried the following command:
clogit depvar indvars, group(state) vce(cluster practice_address)
For my continuous outcomes, I was advised to use: areg depvar indvars, cluster(practice_address) robust a(state). This ran without producing any error messages. In reading through this forum, it doesn't appear there's an analogous command for logistic regression.
Thanks for any advice!
Laura
Comment