Hi All,
I am trying to run a logistic regression with my survey data, where the outcome is a binary variable called ‘pcr_pf’ and I want to look at the association with different variables such as sex, age group, urban/rural, etc. The problem is that for almost all variables I try to run, stata either freezes or works for a long time and then says there is an error because of convergence problem, or an error when executing the command. This is occurring even just with univariate analyses for the majority of my independent variables.
My survey data is a two-stage cluster randomised design – with the sample population split into four strata (domain) and with clusters (cno) being villages. Per strata we had random selection of townships, random selections of villages per township, and random selection of households per village. My svyset command is:
rename weight wts_hh
order probhh wts_hh, after (domain)
svyset [pweight=wts_hh] , strata(domain) psu(cno)
There is one domain that doesn’t contain any cases of the dependent variable of interest. Could it be this causing the problem? However, even if I just run a command such as
svy: logistic pcr_pf sex
I still get no output, stata freezes and then says there was an error executing the command, even though I have cases of the dependent variable in both male and female strata.
Can anyone help?
Thanks.
I am trying to run a logistic regression with my survey data, where the outcome is a binary variable called ‘pcr_pf’ and I want to look at the association with different variables such as sex, age group, urban/rural, etc. The problem is that for almost all variables I try to run, stata either freezes or works for a long time and then says there is an error because of convergence problem, or an error when executing the command. This is occurring even just with univariate analyses for the majority of my independent variables.
My survey data is a two-stage cluster randomised design – with the sample population split into four strata (domain) and with clusters (cno) being villages. Per strata we had random selection of townships, random selections of villages per township, and random selection of households per village. My svyset command is:
rename weight wts_hh
order probhh wts_hh, after (domain)
svyset [pweight=wts_hh] , strata(domain) psu(cno)
There is one domain that doesn’t contain any cases of the dependent variable of interest. Could it be this causing the problem? However, even if I just run a command such as
svy: logistic pcr_pf sex
I still get no output, stata freezes and then says there was an error executing the command, even though I have cases of the dependent variable in both male and female strata.
Can anyone help?
Thanks.

Comment