Home » Data » Dataset use in Stata » Strange Issues w/ Data Formatting from DHS (Data received from DHS seems to be formatted in a way that makes data extraction impossible (longer description below))
Re: Strange Issues w/ Data Formatting from DHS [message #29384 is a reply to message #29170] |
Tue, 11 June 2024 06:07 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
tednoel
Messages: 12 Registered: April 2024
|
Member |
|
|
Hi Trevor! Hope you are well. I have one last question (about to turn my thesis in :D) I want to combine multiple survey rounds to do one meta analysis of the proportional hazard rate of child marriage in response to exposure to flooding... But I've read so many conflicting opinions with respect to whether or not weights are even necessary when doing this (for example: https://userforum.dhsprogram.com/index.php?t=msg&goto=81 &S=Google). That being said, even for the summary statistics I will run, I know official DHS guidance is that population weights should be used, but how do I combine population weights into one weight for summary statistics? I'm interested in running summary statistics for the DHS surveys from Tanzania in 1999, 2010, 2015-16, and 2022; Kenya in 2003, 2008, 2014, and 2022; Zambia in 2007, 2013, and 2018; and Malawi for the years of 2000, 2004, 2010, and 2015. I feel like I would need a different sampling weight for each round? A bit confused on this... also confused as to whether I would need sampling weights for a combined hazards analysis. Below is the code to my cox proportional hazards model:
* Generate event indicator for marriage by age 18
generate married_by18 = (v511 < 18) & !missing(v511)
label variable married_by18 "Married by age 18"
generate married_by15 = (v511 <= 15) & !missing(v511)
label variable married_by15 "Married by age 15"
* Generate time-to-event or censoring
generate current_age = hv007 - v010
label variable current_age "Age at the time of study"
generate time = cond(married_by18 == 1, v511, current_age)
label variable time "Time to marriage by age 18 or censoring"
* Set the survival data
stset time, failure(married_by18)
* Run Cox regression (example with other covariates)
stcox flood_exposure rural_dummy sexhh_dummy primary_education low_wealth _Iyear
any help you could provide would be incredibly, incredibly appreciated!! thanks so much in advance
|
|
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Strange Issues w/ Data Formatting from DHS
By: tednoel on Sat, 13 April 2024 08:17
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Thu, 18 April 2024 10:07
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Mon, 29 April 2024 08:04
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Mon, 29 April 2024 11:54
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Wed, 01 May 2024 12:02
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Wed, 01 May 2024 14:40
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Thu, 02 May 2024 08:46
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Thu, 02 May 2024 18:12
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: yyumeee on Sun, 12 May 2024 13:54
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: yyumeee on Mon, 13 May 2024 13:12
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Tue, 11 June 2024 06:07
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
By: tednoel on Tue, 11 June 2024 10:50
|
![Read Message Read Message](/theme/default/images/read.png) |
|
Re: Strange Issues w/ Data Formatting from DHS
|
Goto Forum:
Current Time: Sun Sep 1 21:12:32 Coordinated Universal Time 2024
|