I would like to create a variable based on individuals being classified as "high risk" or "low risk".
This risk stratification would be based on individuals having 2 or more of certain other characteristics or risk factors, such as sex, age, education etc.
Ordinarily if it was looking at 1 or more of any risk factor, my practice would be to generate a new variable and just "replace as I go" with each old variable in turn.
However, how is it possible to do this if an individual is classified as "high risk" based on having 2 or more of a series of variables?
I can't seem to readily find this on this forum or elsewhere online.
Related Posts with How to generate a new binary variable based on individuals having 2 or more of other risk factors
Tabulating or listing distinct values for multiple variablesHi, I want to tabulate or list the distinct or unique values of "stcode" and "avg" variables. The d…
Including additional interaction fixed effects in a two way fixed effect modelHi Statalist, I just joined the community and I would like to ask a question that I couldn’t solve …
Does "reverse" retain as official word?Dear Stata users, I installed a community contributed command -revrs- (SSC) written by Kyle Longest…
duration of employment spells by personal idHi! I would like to calculate duration of low wage employment (dummy 0/1) for each individual in my…
option measure() not allowed r(198)Hi, I am a newbie to using Stata and Meta-analysis. When I entered "metabias logor selogor, begg" or…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate a new binary variable based on individuals having 2 or more of other risk factors
Post a Comment