Hello expert stata
I'm new to stata. I had an exercise from the class for analysing the data.
the first thing i need to create the variable metabolic syndrome (0=not disease) (1=disaese) but it has the conditions that i hadnt figure it out how to do it .
the criteria for diagnosis metabolic syndrome are having 3 or more of the five items
1. Elevated waist circumference:
- Men — wc ≥ 90 cm
- Women — wc ≥ 80 cm
2. Reduced HDL-Cholesterol:
- Men — hdl < 40 mg/dL
- Women — hdl < 50 mg/dL
3. Elevated triglycerides: tg ≥ 150 mg/dL
4. Elevated blood pressure: sbp ≥ 130 mmHg or dbp ≥ 85 mmHg
5. Elevated fasting glucose: fpg ≥ 100 mg/dL
teacher gave me all of these variables (wc, HDL, TG, BP, fasting glucose)
i dont know how to create a variable that having condition of "at least 3" ( it can also be 4 or 5 items )
Array
Related Posts with create new variable with multiple conditions
Zero LR test statistic for melogitWhen using the following code Code: melogit goodprog i.screen i.dxagecat i.remoteness || sa3: , or…
Bootstrap with xtabond2Hello everyone, I am a beginner researcher. Now, I try my data with xtabond2 command. I see almost e…
Spatial model (xsmle) with spatial DV and IV lags and spatial errors?Is there a way to estimate a model with (1) a spatially lagged dependent variable, (2) spatially lag…
spxtregress is arbitrarily dropping regressorsI'm trying to use Stata's built-in commands to estimate a spatial panel model (i.e. I'm using spxtre…
Using categorical independent variables in GSEM builderMy goal is to use and understand GSEM, both the builder and the syntax. I'm doing a path analysis to…
Subscribe to:
Post Comments (Atom)
0 Response to create new variable with multiple conditions
Post a Comment