Hi.
I am having trouble with following script. It is a real basic function but I don't know why it does not work.
As you can see below, I am trying to seperate normal and hypertensive group. And I just cannot find out
why htn and htn1 has different number of persons in it.
Please share some wisdom for me. BTW htn group presents actual number.
Many Thanks.
gen htn=1 if sys>140 | dia>90
replace htn=0 if missing(htn)
gen htn1=0 if sys<=140 | dia<=90
replace htn1=1 if missing(htn1)
Array
Related Posts with Having trouble while using inequality signs.
Count distinct values by groupsHello everyone, I have one question related to counting distinct values by groups. Here is an examp…
Each table on a new page using asdocHello everyone, I am running DEA models and I was wondering if it is possible to start the output o…
Standardizing categorical variablesDear Statalist, I am running a linear probability model with categorical variables. Some of the ind…
Does lowess take a long time?I am running Stata SE/17.0 on a Windows machine with Intel i7 1.8GHz, and 32GB RAM. So not exactly t…
Negative error varianceDear StataListers, what should I do if I get a negative error variance in the stimation of structura…
Subscribe to:
Post Comments (Atom)
0 Response to Having trouble while using inequality signs.
Post a Comment