Hello,
I am trying to use the khb command with complex data and I am getting an error message that I cannot understand. From my research, it seems like khb is able to deal with svy data, so I'm a little stumped as to the problem.
I am using Stata 13.
My data is svyset with the following code:
The model I'm trying to run is the following:
And the error message I get when I do that is "khb is not supported by svy with vce(linearized); see help svy estimation for a list
of Stata estimation commands that are supported by svy."
I've tried changing the vce type and get the same message but with that type where linearized is in the above error message (So for example when I change to vce(cluster) I get the exact same error message above, except it says "khb is not supported by svy with vce(cluster); see help svy...").
When I run the exact same model except without the svy prefix, but still subsetting the data and including the pweight, it runs no problem. That code looks like this:
I know that subsetting the data this way instead of subpop & using just the pweight instead of pweight + strata + cluster are affecting only my standard errors and not the coefficients, but I'm having trouble understanding why the code for the the first model above won't work (svy + subpop + khb). Any help is much appreciated; I've been through most of the khb posts on here and I didn't see anything similar, so if I missed something please point me in that direction. Thank you!
Lydia
I am trying to use the khb command with complex data and I am getting an error message that I cannot understand. From my research, it seems like khb is able to deal with svy data, so I'm a little stumped as to the problem.
I am using Stata 13.
My data is svyset with the following code:
Code:
svyset IDNUMR [pw=WEIGHT_CATI], strata(stratacross)
Code:
svy, subpop(DX_aut_11 if nomiss==1): khb logit causes_genetic /// hispanic black otherrace parented_aboveHS FPL100to199 FPL200to399 FPL400andup /// || all_limit sdq_CATI_high DX_dev_11 DX_int_11 pervasivedevdis autisticdis /// multipledx autyp_unknown, concomitant(male AGE) disentangle ape summary or
of Stata estimation commands that are supported by svy."
I've tried changing the vce type and get the same message but with that type where linearized is in the above error message (So for example when I change to vce(cluster) I get the exact same error message above, except it says "khb is not supported by svy with vce(cluster); see help svy...").
When I run the exact same model except without the svy prefix, but still subsetting the data and including the pweight, it runs no problem. That code looks like this:
Code:
khb logit causes_genetic /// hispanic black otherrace parented_aboveHS FPL100to199 FPL200to399 FPL400andup /// || all_limit sdq_CATI_high DX_dev_11 DX_int_11 pervasivedevdis autisticdis /// multipledx autyp_unknown if DX_aut_11==1 & nomiss==1 [pweight=WEIGHT_CATI], concomitant(male AGE) disentangle ape summary or
Lydia
Comment