The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » loop regression
loop regression [message #15537] Wed, 08 August 2018 16:35 Go to next message
lynn.alghazzi@gmail.com is currently offline  lynn.alghazzi@gmail.com
Messages: 8
Registered: July 2018
Member
Hello! I have an appended dataset that contains 10 countries that have the domestic violence module. In order to study the determinants of seeking help, i need to run a regression with seeking help as the dependant variable and some explanatory variables. However i have to do that for each of the countries. I know that i can use loop to do it once for all the countries but i can't figure out how and i am a beginner in Stata. Can you please show me the exact commands i need. (variable for countries is v000 , includes countries like C05 CO6 IA5 IA6 ZM6 PE6)

Thank you
Re: loop regression [message #15538 is a reply to message #15537] Wed, 08 August 2018 16:41 Go to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
Dear User,
For Stata help, please visit:http://www.cpc.unc.edu/research/tools/data_analysis/statatutorial
Thank you!
Previous Topic: SHDIST Variable for Ghana
Next Topic: % of children who were dropouts
Goto Forum:
  


Current Time: Fri Mar 29 06:35:34 Coordinated Universal Time 2024