Hi. I am new to Stata and am doing a DHS dataset analysis (2 appended datasets from the same country) generating a new variable which i named "Period" and assigned values: 0=Pre-pandemic, 1=Pandemic.
I have renamed the variables: for example, v012 (current age, continuous variable) was renamed "age".
I have performed as svyset and proceeded to compute mean age by Period for a subpopulation of women who gave birth in the 2 years prior to the survey:
svy, subpop(if childage_mos<=24): mean age, over(Period)
Hhowever, when I performed an adjusted Wald test using:
test [age]Pre-pandemic = [age]Pandemic
Stata returned the following error message:
Equation [age] not found
r(303);
How can i make adjusted Wald test work in this situation?
Could this be due to mistakes in how i svyset the data?
THank you for your help.
Lora
I have renamed the variables: for example, v012 (current age, continuous variable) was renamed "age".
I have performed as svyset and proceeded to compute mean age by Period for a subpopulation of women who gave birth in the 2 years prior to the survey:
svy, subpop(if childage_mos<=24): mean age, over(Period)
Hhowever, when I performed an adjusted Wald test using:
test [age]Pre-pandemic = [age]Pandemic
Stata returned the following error message:
Equation [age] not found
r(303);
How can i make adjusted Wald test work in this situation?
Could this be due to mistakes in how i svyset the data?
THank you for your help.
Lora
Comment