by jhines » Wed May 07, 2008 4:20 pm
If you have two values for era, then you could have two models with era and trapeffort: phi+TE (no interaction, think parallel lines on a graph), and phi*TE(interaction, non-parallel lines). For the era+TE model, the DM would be:
.... B1 B2 B3
p1 1 0 era
p2 1 1 era
p3 1 2 era
p4 1 3 era
p5 1 4 era
p6 1 5 era
p7 1 6 era
p8 1 7 era
In the output, B1 will be the intercept for the first era, and B2 will be the slope (on a logit scale) for the first era, and B3 will be the difference between the first era line and the 2nd era line.
For the era*TE model, the DM would be:
... B1 B2 B3 B4
p1 1 0 era 0
p2 1 1 era era
p3 1 2 era era2
p4 1 3 era era3
p5 1 4 era era4
p6 1 5 era era5
p7 1 6 era era6
p8 1 7 era era7
where era2 is an additional covariate with the value of 2*era, and era3 is another covariate with the value 3*era,.... So, you'll have to create 6 new covariates (era2-era7) and add them to the project.
In the output, B1-b3 are as described above, and B4 is the difference between the slope for the first era and the 2nd era.