Thank you for this. However, the graph does not look right. Could you please clarify what the statements: count=rand ("Poisson", 0.8); and count=rand ("Poisson, 2.4); mean? It seems to be a random number generation, but I'm not sure why you would do that? And why are 0.8 and 2.4 chosen, in particular. I want the graph to show the true count (which are outcomes per week and are in the range of 100-750, varying per week) and overlay the Poisson regression line, divided by pre and post intervention. When I use this code, "count" becomes a number between 1-3 or so... Thank you for all of your assistance!
... View more