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.
Unit root test for unbalanced panelsHi! I am using data from the British Household Panel Survey which is an unbalanced panel. I am prim…
'F model statistic missing' when testing parallel trendHello everyone, There was a birth policy implemented only in urban area in 2015,and I’m trying to t…
Comparing two groups using xtnbreg + power analysisDear Statalists, I do Research on the effects of employee stock ownership on individuals idea sugge…
Vector autoregression modelsI am new to working with time series data. I am looking to see how sudden larges changes in the pric…
Regress dummy variable correctlyHello, I have generated a dummy variable "cellar" with has 3 answers: 1 large basement, 2 small bas…
Subscribe to:
Post Comments (Atom)
0 Response to Having trouble while using inequality signs.
Post a Comment