The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » What Should be Used "And (&)" "or "OR (|)
What Should be Used "And (&)" "or "OR (|) [message #20388] Tue, 27 October 2020 05:08 Go to previous message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear DHS Representative,

Before performing descriptives and inferential analysis, after declaring my data set (BR file PDHS 2017-18). I run the following command for my univariate analysis;

svy linearized, subpop(if bidx==1 & b0==0 & v210!=1) : stcox ib(0). HepBTest

Quest: I am using subpopulation for those neonates who were last born to the mothers included in the survey (bidx==1), who was the product of singleton pregnancy (b0==0), and who were not born in the month of conducting the survey (v210!=1). Kindly confirm and please also explain is this correct to use "AND (&)" in between my subpopulation variables. This query pops up in my mind after seeing the coding on the git-hub " https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap09_RH/RH_DEL.do" over here the "OR (|) is used.


Quest: What is meant by "if age>=period" I am asking this question because in my analysis up till now I have confidence in my sup-population, however after seeing the above git-hub link I in doubt regarding AND(&) OR(|) use. Also, I have not used any stata command if age>=period up till now.

I am working on the determinants of neonatal mortality in Pakistan (BR-file 2017-18) using STATA 13.1.

Waiting for your reply.

Best Regards

Dr. Hussain




 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Comparison Between Birth weight Variable m19 & m18
Next Topic: Age of Mother at Time of Most Recent Birth
Goto Forum:
  


Current Time: Wed Dec 25 01:53:44 Coordinated Universal Time 2024