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
Nijman and Verbeek (1992) test to formally test for attrition biasDear all, I desperately need help on the step by step process of using Nijman and Verbeek (1992) te…
Multiple linear regression - residuals not normal?Hi everyone, I'm running a multiple linear regression with 170 cases. To check for normality of res…
Creating a string variable based on values of different variablesDear statalisters, Let's say I have 5 different variables that can take values ranging from 1 to 10.…
Stata commandDear all First of all, thank you so much to you (statistical professionals) for your help and advice…
scatterplots for binary variablesHi, I am very new to Stata so please forgive me if this is a very basic question. I have a binary v…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable depending on time variable
Post a Comment