The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Geographic Data » How to use GPS data
How to use GPS data [message #22449] Sat, 13 March 2021 11:49 Go to next message
Jennie is currently offline  Jennie
Messages: 8
Registered: March 2021
Member
Dear all,



I am using the DHS datasets for the Uganda survey year 2006 (dataset UGIR52DT) and 2011 (dataset UGIR61DT) and also the GPS data (UGGE53FL) and (UGGE61FL). I have tried to search in the forum for an answer to the following questions but I didn't find the specific answer and explanation I was looking for. I wonder if you have any suggestions:

1. Is it possible to match DHS clusters from the 2006 and 2011 surveys? So, I wonder if I can match the unique id from both surveys? Do they have the same id?
Also, do you know where I could find information about how to use GPS datasets (for example where it says if matching id is possible?)

2. If (1) is not possible, I wonder if I could match clusters to districts. But since only information on regions are available as a variable in dataset 2011, I wonder if you have any suggestions how to do this? My thought is to match clusters to the 135 districts. I read that since clusters are geomasked it might be problematic but do you think it is possible?

Thank you for your help!
Kind regards,
Jennie
Re: How to use GPS data [message #22498 is a reply to message #22449] Sat, 20 March 2021 05:06 Go to previous messageGo to next message
hamid is currently offline  hamid
Messages: 9
Registered: November 2018
Member
Dear Jennie,

1. The surveys you are working with are not panel, but cross-sectional, meaning that different individuals were surveyed in each round. You cannot merge the two years to run longitudinal models at the household/individual level (e.g., Fixed Effects regressions).

2. Merging the two surveys to obtain a regional-level panel dataset is usually possible if you have GPS coordinates in both.

I would proceed as follows:
- download a shapefile for the correct administrative level of Uganda;
- generate a dataset with only the DHS individual/household identifiers plus latitude and longitude and create a spatial point dataset
- assign to your spatial point data the same coordinate reference system of the shapefile (i.e., account for earth curvature).
- project the points from your surveys onto the shapefile (spatial polygon data): this will result into a spatial point dataset with a data slot in which you have hh/ind ids and the regional identifier
- merge the spatial point data-slot to the original DHS surveys using hh/ind ids
- consider that if the coordinates provided by DHS have been randomly offset, a small degree of error will apply, but this would be random and thus it only would translate in some degree of attenuation bias (not systematic).

I hope this helps.

Best,
Hamid
Re: How to use GPS data [message #22503 is a reply to message #22498] Sun, 21 March 2021 06:25 Go to previous messageGo to next message
Jennie is currently offline  Jennie
Messages: 8
Registered: March 2021
Member
Dear Hamid,

Thank you so much for your reply! Your explanation is very helpful.

Kind regards,
Jennie
Re: How to use GPS data [message #22558 is a reply to message #22449] Wed, 31 March 2021 20:07 Go to previous messageGo to next message
lucasj_lm is currently offline  lucasj_lm
Messages: 2
Registered: March 2021
Member
I am attempting to do something similar for Uganda 2011! I am not able to identify any way of finding the GPS coordinates associated with individual survey responses in the 2011 survey.

I have access to the GPS data, but there are no latitudes and longitudes listed anywhere in the files I downloaded?
Re: How to use GPS data [message #22565 is a reply to message #22558] Fri, 02 April 2021 08:53 Go to previous messageGo to next message
Jennie is currently offline  Jennie
Messages: 8
Registered: March 2021
Member
Hi,

Not sure if this solves your problem. But if you have access to the GPS data, you can see that the GPS data and the standard DHS file are separate files? So, if I understand it correctly, you have to convert the GPS data to a dta file and then match with the standard DHS file. If you are using Stata you could google shp2dta.

Best,
Jennie
Re: How to use GPS data [message #22568 is a reply to message #22565] Sat, 03 April 2021 22:35 Go to previous messageGo to next message
lucasj_lm is currently offline  lucasj_lm
Messages: 2
Registered: March 2021
Member
Thanks Jennie, I'm using the command: shp2dta using UGGE53FL, database(2016GPS) coordinates(2016GPSCoords)

But I get the message "command shp2dta is unrecognized". I have installed the shp2dta package.

Any ideas on how to resolve this?

Thanks!
Re: How to use GPS data [message #22572 is a reply to message #22568] Tue, 06 April 2021 02:28 Go to previous message
Jennie is currently offline  Jennie
Messages: 8
Registered: March 2021
Member
I would have thought that you needed to install the shp2dta package, but you write that it is already installed. Maybe you can uninstall and then reinstall shp2dta? (ssc install shp2dta). Another useful command is "search shp2dta". Unfortunately not sure what the problem is, maybe someone else in this forum has a suggestion. Hope you solve the problem.

Best,
Jennie
Previous Topic: Merging RWKR70FL and RWGE72FL
Next Topic: GPS dataset access
Goto Forum:
  


Current Time: Thu May 13 04:51:26 Coordinated Universal Time 2021