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.
How to calculate NRI after multiple imputation (mi impute mvn)hello everyone, I'm a new Stata user and expect some suggestions.I have done the code "mi estimate:l…
egen xtileHey! I am trying to do the following, egen tier=xtile(diff), nq(3) by(id yq) yq is the year and qu…
xtgls or xtpcseI have a data panel, and after all the test for classic assumption my dataset has a heteroskedastici…
Interval Regression with Instrumental VariableHello! I am trying to estimate the causal effect of certain individual characteristics on the outco…
Getting standard output of shell command into logI'd like to capture the output of shell commands in the Stata log. For example I tried: Code: log u…
Subscribe to:
Post Comments (Atom)
0 Response to Having trouble while using inequality signs.
Post a Comment