I have a Poisson regression where I regress a counts variable (called $H(x)$) on one covariate (called $x$) and one factor (categorical) variable (called $s$), which can take one of three values recoded to integers 1 through 3. I am including an offset variable called $P(x)$ and an intercept called $B_0$. I am trying to write the regression equation.
I believe I have correctly expressed the dependent, offset, intercept, and $B_1$ terms, but am not sure about how to express the categorical variable (the $s$) term. Since it's a categorical variable that takes an integer value in the range 1 through 3, I would like to know if can I write it like this (in bold below):
$$\log H(x) = \log P(x) + B0 + B1 \cdot x + B2\cdot s$$
or if instead I should express each possible value in the equation (since the regression results give one beta parameter estimate for each of the three values) like this:
$$\log H(x) = \log P(x) + B0 + B1 \cdot x + B2 \cdot 1 + B3 \cdot 2 + B4 \cdot 3$$
The value for this categorical factor coded as "3" is the reference variable and so the parameter estimate is set by the regression procedure in SPSS to 0.