The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » How to download only few variables from the DHS dataset
How to download only few variables from the DHS dataset [message #9840] Sun, 29 May 2016 20:39 Go to next message
Uththara is currently offline  Uththara
Messages: 2
Registered: May 2016
Member
Hi,

I only need to data on few variables from Household data in different African countries. Since my Stata does not allow me to take whole data set due to the fixed number of variables.
For example I need variables like, HV243A,HV240, HV239...etc.
My question is is there any possibility of downloading only the needed variables?

Thank you.
Re: How to download only few variables from the DHS dataset [message #9843 is a reply to message #9840] Mon, 30 May 2016 17:11 Go to previous messageGo to next message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member

I believe you can just download the regular dataset, but only load certain variables from it. See: http://www.stata.com/help.cgi?use

use [varlist] [if] [in] using filename [, clear nolabel]

So if you typed, for example:

"use make rep78 foreign using myauto"

...it would only load 3 variables ("make" "rep78" and "foreign") from the dataset "myauto".

I think that should work, but let me know if it doesn't.
Re: How to download only few variables from the DHS dataset [message #9844 is a reply to message #9843] Mon, 30 May 2016 23:54 Go to previous messageGo to next message
Uththara is currently offline  Uththara
Messages: 2
Registered: May 2016
Member
Hi,

Unfortunately it is not working. because the file itself cannot be opened.
Is there another way?

Thank you.
Re: How to download only few variables from the DHS dataset [message #9855 is a reply to message #9844] Tue, 31 May 2016 16:33 Go to previous message
boyle014 is currently offline  boyle014
Messages: 78
Registered: December 2015
Location: Minneapolis
Senior Member
IPUMS-DHS allows you to do this easily. It is available at idhsdata.org. Your regular DHS User ID and password will work there. IPUMS-DHS is a project of the Minnesota Population Center, with support from ICF International. It currently includes African surveys and India.

Professor Elizabeth Boyle
Sociology & Law, University of Minnesota, USA
Principal Investigator, IPUMS-DHS

[Updated on: Tue, 31 May 2016 16:40]

Report message to a moderator

Previous Topic: Discrepancy between household and household members datasets
Next Topic: Pooled Multinomial Logistic Regression
Goto Forum:
  


Current Time: Fri Apr 19 21:11:06 Coordinated Universal Time 2024