The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Child nutrition and spousal violence (Merging files)
Re: Child nutrition and spousal violence [message #28256 is a reply to message #28241] Wed, 06 December 2023 05:40 Go to previous messageGo to previous message
darji.shah_ug24@ashoka.ed is currently offline  darji.shah_ug24@ashoka.ed
Messages: 10
Registered: November 2023
Member
this is the code we have used, for context:
log using "c:\users\dell\documents\project\log_file.log", replace
clear all
set maxvar 7000
use "c:\users\dell\documents\project\working_dataset.dta"
keep v012 v013 d101* d102 d103* d104 d105* d110* d118a d121 hw1 hw2 hw3 hw51 hw70 hw71 hw72 hw73 m18 v025 m10 v130 v131 v190 v136 v137 v044 v106 v191 hw13
keep if v012 >= 18 & v012 <= 49 | hw1 < 60
keep if hw71 >= -600 & hw71 <= -201
tab hw71 reg hw71 d105*
regress hw71 d105*
log close
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Merging two rounds
Next Topic: Merging and appending data files
Goto Forum:
  


Current Time: Mon Nov 25 12:47:06 Coordinated Universal Time 2024