Hello,
I am using Stata/SE 14.2 for Mac. I am working on my thesis that is about resistant bacteria in a country with wet and dry season. I would like to investigate whether the season has an impact on the prevalence of bacteria in hospitalized patients. I have a time variable, that looks like this:
ca_dateadmission_t
17jul2016 15:00:13
I would like to generate a variable that is 1 if the patient was admitted in june, september or october. Is there a way I can do that? Thank you very much!
Related Posts with Generating a variable depending on time variable
Create a date variable from a variable of the "int" type.Hello! I am currently trying to create a "date" variable from my current variable named "Date". I …
system of equations with endogenous variable and random effects (panel data)Dear all, we need to estimate a system of three linear equations with an endogenous variable on pan…
loop to change variable's valueHi! My first post here. So, I want to reshape from long to wide. The variables are called cc_know_* …
loop regressionDear, I have a set of different dependent variables and a common set of controls. Furthermore, I ne…
Factor variables in qregDear all, I am writing a code on some flexible estimation method and I wanted to use "qreg" as preli…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable depending on time variable
Post a Comment