Hi there. I’m new to this forum. I am an intermediate user of Stata (version 13.1) and have a question regarding a dataset I am currently analysing. It is a dataset of 15,000 bacteria from patients with an infection. The dataset contains count data. These bacteria have all been tested for their susceptibility to 5 antibiotics. Susceptibility means whether or not the bacteria are killed off by the antibiotic. If they are not killed off, it is a resistant bacterium. For each antibiotic, the outcome is either ‘resistant’ or ‘susceptible’.
There are also other variables in the dataset such as age of patient from which the bacteria came from, region from which the bacteria/patient came from and the year and month the infection occurred. I want to run a Poisson regression in order to quantify the trends of resistance to these 5 antibiotics over time (i.e. per month per year). I have generated a new variable which only contains the number of ‘resistant’ infections to each antibiotic.
I want to use this variable to represent the resistant cases. I’ve read in previous literature that the Poisson regression as the best way to analyse trends over time for count data. I understand that I also need to look at over-dispersion which means I may need to use a negative binomial regression. I am not using a time-series analysis as I want to simply model trends over time.
My specific questions are the following
There are also other variables in the dataset such as age of patient from which the bacteria came from, region from which the bacteria/patient came from and the year and month the infection occurred. I want to run a Poisson regression in order to quantify the trends of resistance to these 5 antibiotics over time (i.e. per month per year). I have generated a new variable which only contains the number of ‘resistant’ infections to each antibiotic.
I want to use this variable to represent the resistant cases. I’ve read in previous literature that the Poisson regression as the best way to analyse trends over time for count data. I understand that I also need to look at over-dispersion which means I may need to use a negative binomial regression. I am not using a time-series analysis as I want to simply model trends over time.
My specific questions are the following
- How exactly can I effectively use the Poisson command in Stata to model trends over time? I have tried to use it with the code: poisson cases year i.month – but I’m not sure what other considerations I need to make. For example, sometimes I’ve seen this command followed by ‘irr’ or ‘robust’ and I am not entirely sure what these mean.
- Do I need to add the other variables in my regression e.g. region and age?
- Can I then create a graph once I’ve quantified these trends? I would like to create a graph that has months on the x avis and trends on the y axis.
Comment