Dear Statalist user,
How could you help me with this issue, please? I am working on a Poisson model to analyze trends in two regions. My goal is to estimate distinct slopes for each region, with a break in 1980 to capture a change in trend.
I used the following specification:
[poisson _d c.AgeCourant c.periode1_RegionA c.periode1_RegionB /// c.periode2_RegionA c.periode2_RegionB i.Niveduc i.Revenu i.parité ///
if _st==1 & Anneecal <= 1988, exposure(TempsÀRisque) irr allbaselevels]
What I want to achieve:
I want to make sure my model is correctly specified. Currently, I have defined the linear splines as follows:
[gen periode1_Ontario = (Traitement == 0) * (Anneecal - 1960) * (Anneecal < 1980)
gen periode1_Quebec = (Traitement == 1) * (Anneecal - 1960) * (Anneecal < 1980)
gen periode2_Ontario = (Traitement == 0) * (Anneecal - 1980) * (Anneecal >= 1980)
gen periode2_Quebec = (Traitement == 1) * (Anneecal - 1980) * (Anneecal >= 1980)]
Is this specification correct to obtain distinct slopes before and after 1980 for each region? If not, what would be the best way to parameterize this?
Thank you very much for your help! 😊
How could you help me with this issue, please? I am working on a Poisson model to analyze trends in two regions. My goal is to estimate distinct slopes for each region, with a break in 1980 to capture a change in trend.
I used the following specification:
[poisson _d c.AgeCourant c.periode1_RegionA c.periode1_RegionB /// c.periode2_RegionA c.periode2_RegionB i.Niveduc i.Revenu i.parité ///
if _st==1 & Anneecal <= 1988, exposure(TempsÀRisque) irr allbaselevels]
What I want to achieve:
- Have a specific slope for each region before 1980
- Have a specific slope for each region after 1980
- Capture a break in 1980 to see if there is a distinct change in trend for each region
I want to make sure my model is correctly specified. Currently, I have defined the linear splines as follows:
[gen periode1_Ontario = (Traitement == 0) * (Anneecal - 1960) * (Anneecal < 1980)
gen periode1_Quebec = (Traitement == 1) * (Anneecal - 1960) * (Anneecal < 1980)
gen periode2_Ontario = (Traitement == 0) * (Anneecal - 1980) * (Anneecal >= 1980)
gen periode2_Quebec = (Traitement == 1) * (Anneecal - 1980) * (Anneecal >= 1980)]
Is this specification correct to obtain distinct slopes before and after 1980 for each region? If not, what would be the best way to parameterize this?
Thank you very much for your help! 😊
Comment