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.
Splitting complex time-series to categories Dear statalisters, I am working with a paneldata, time-series dataset. I am modelling variables ov…
Reshaping data from long to wide formDataex input float(machine u_i control u_ij replicate e_ijk IUg mach1 MC MCR) byte(_Imach1_1 _Icont…
Survival Analysis using Nigeria Demographic and Health Survey dataPlease everyone I have this challenge with setting up my data for survival analysis to study under-5…
Looping egen mean weightHi all, I am supposed to get a single mean_weight variable. Original egen code: egen weight_mean =…
Finding and encoding previous experienceDear all, I have a question that I have been struggling with in the past few days. I have read the …
Subscribe to:
Post Comments (Atom)
0 Response to Having trouble while using inequality signs.
Post a Comment