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
Implement Multinomial Logit Model using ml commandI would like to implement multinomial logit model using maximum likelihood command to generate the s…
is it possible to do a repeated Measures ANOVA without case identifierHi all, I am currently using a Qualtrics platform survey to measure the perceived social consensus …
panelsubmatrix(): 3301 subscript invalidI use stata15 and I write Code: xsmle INDEX CREDDEV CHEXCHRATE UNINF, wmat(Z) model(sdm) and I ge…
How to use "/" in StataHi everyone, I would like to know how to build a code that lets me display the following data: Ind…
Merging two databases. With different dates. Best method?Dear members, These days I am working on my (master) thesis and I am working with Stata in order t…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable depending on time variable
Post a Comment