I am performing linear regression on a dataset and want to include an interaction between sex and another covariate. However, in my model sex is coded as $0$ for female and $1$ for male.
If I have an interaction of the form sex*covariate then my design matrix may look something like this
$$\begin{bmatrix} 0 & 2.3 & 0 \\ 1 & 3.3 & 3.3 \\ 1 & 9.0 & 9.0 \\ 0 & 7.3 & 0 \\ 0 & 5.2 & 0 \\ 1 & 2.2 & 2.2 \\\end{bmatrix}$$
Where the first column is sex the second is my covariate and the third is the interaction between sex and the covariate.
This seems really strange to me as essentially it doesn't matter what the values in the second column were for women, the interaction will always be zero. Suppose instead I had coded sex in my design as -1 and 1 for female and male. Then I would have:
$$\begin{bmatrix} -1 & 2.3 & -2.3 \\ 1 & 3.3 & 3.3 \\ 1 & 9.0 & 9.0 \\ -1 & 7.3 & -7.3 \\ -1 & 5.2 & -5.2 \\ 1 & 2.2 & 2.2 \\\end{bmatrix}$$
My question is this; doesn't it matter how I code sex? Which of the two above designs are correct for including an interaction here? And why?
Edit: My original post did not mention but my design also includes an intercept. So in fact the above matrices should look like:
$$\begin{bmatrix} 1 & 0 & 2.3 & 0 \\ 1 & 1 & 3.3 & 3.3 \\ 1 & 1 & 9.0 & 9.0 \\ 1 & 0 & 7.3 & 0 \\ 1 & 0 & 5.2 & 0 \\ 1 &1 & 2.2 & 2.2 \\\end{bmatrix}$$
and:
$$\begin{bmatrix} 1 &-1 & 2.3 & -2.3 \\ 1 &1 & 3.3 & 3.3 \\ 1 &1 & 9.0 & 9.0 \\ 1 &-1 & 7.3 & -7.3 \\ 1 & -1 & 5.2 & -5.2 \\ 1 & 1 & 2.2 & 2.2 \\\end{bmatrix}$$
respectively.