Hello,
First time post here. I stumbled across this forum as I searched Google for answer to my questions.
I have just recently began to use Stata for analysis and self-learning through online courses. I am stuck trying to a specific analysis. I am not sure what the correct approach is to it and would appreciate any help.
I have data that looking at trends for two events over the past 15 years. Let's say 'Event A' and 'Event B' from 2005-2020. I have performed a simple linear regression analysis using the 'regress' command. Both events are significantly increasing over time (p<0.05). Next, I want to compare the trends of the two events to observe if there is any significant difference in the change/rate of change for these two independent events over the time period. My first thought was to compare the slopes of the two linear regressions I have to each other, but I am not sure if this is the correct way. I could also be completely incorrect in this approach. Is there a better way to approach my question and can it be performed on Stata?
Thank you in advance!
First time post here. I stumbled across this forum as I searched Google for answer to my questions.
I have just recently began to use Stata for analysis and self-learning through online courses. I am stuck trying to a specific analysis. I am not sure what the correct approach is to it and would appreciate any help.
I have data that looking at trends for two events over the past 15 years. Let's say 'Event A' and 'Event B' from 2005-2020. I have performed a simple linear regression analysis using the 'regress' command. Both events are significantly increasing over time (p<0.05). Next, I want to compare the trends of the two events to observe if there is any significant difference in the change/rate of change for these two independent events over the time period. My first thought was to compare the slopes of the two linear regressions I have to each other, but I am not sure if this is the correct way. I could also be completely incorrect in this approach. Is there a better way to approach my question and can it be performed on Stata?
Thank you in advance!
Comment