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.
Take the latest observation per fiscal-periodHi, I want to take (or mark) the latest forecast (variable= forecast_date) per fiscal-period (varia…
Help required for variable forecast procedureDear All I need some help with commands relating to earnings forecasts model: EARN(t+1)=b0+ b1EARN…
Difference in proportion adjusted for baseline characteristics (Mantel Haenszel method)Hi, I am analysing the results of a trial & would like to compare the proportion of individuals…
Calculating Risk for Repeated Measures with Varying & Overlapping PredictorsI have data on several measures for 150 survey respondents: Infection (binary outcome of interest), …
.ado Programming in Stata without invoking mata: Invalid Name error from within the functionStata Status: Beginner I have declared a local variable inside my function. And whenever I referenc…
Subscribe to:
Post Comments (Atom)
0 Response to Having trouble while using inequality signs.
Post a Comment