The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » To perform anova for count data in stata with survey weight
To perform anova for count data in stata with survey weight [message #15544] Fri, 10 August 2018 03:00 Go to next message
Nadia_n_n is currently offline  Nadia_n_n
Messages: 1
Registered: August 2018
Location: Dhaka
Member
Hi, I'm a new user

I want to perform anova for count data in stata with survey weight, primary sampling unit.
like my dependent variable is No. of antenatal visits and independent variable is Education level, whenever I write the following code in stata,

svy: oneway no_of_antenatal_visits education_level

then it is showing error.

Can you please tell me the write way to perform anova in stata for count data, with survey weight?
Re: To perform anova for count data in stata with survey weight [message #15755 is a reply to message #15544] Mon, 10 September 2018 20:39 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3013
Registered: February 2013
Senior Member
Following is a response from Senior DHS Specialist, Tom Pullum:

Sorry for the delay in this response. You may already have solved the problem.

I don't see any obvious reason why you are getting an error message. Can you send a log file?

Personally, I would use Poisson regression and a model such as "poisson no_of_antenatal_visits i.education_level". With anova, you are treating the count as an interval-level outcome. The tests in anova assume that the errors are normally distributed and homoscedastic. Both of those assumptions are implausible for a count. Poisson (and negative binomial) models are more appropriate for an outcome that is a count.

I also recommend that other variables be included, such as the age and/or parity of the woman.
Previous Topic: Slight Deviation from Reported Value: BDHS 2014 place of delivery and assistance during delivery
Next Topic: Calculation of sample size in BDHS 2014
Goto Forum:
  


Current Time: Mon Mar 18 22:12:30 Coordinated Universal Time 2024