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
How do we explain intercept parameters for a Weibull survival model?I have been using streg to fit predictive survival models (for time from diagnosis to death) to some…
Creating an ID variable from several group identifiersHello Stata users, On my dataset the individuals have two household identifiers from different sour…
Propensity score Match and Diff-in-diff AnalysisHi Stata Users, I am a student who is doing the thesis project in Finance. I am using the STATA soft…
Overlapping holding period momentum strategyI'm working on a project where I want to investigate a momentum strategy of stock returns. I'm formi…
Issue with dummy variables in mixlogitHello, I am trying to estimate the mixlogit using the below syntax: mixlogit choice distance fac_t…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable depending on time variable
Post a Comment