The approach in the question seems to be correct as long as the variables of concern are continuous or binary. Categorical variables with three or more levels cannot be multiplied as stated.
The standardized interaction term should be the standardized version of the product of the two original variables, not the product of the two standardized variables. Here is an example using the sample data set auto
in Stata:
Let's say we are interested in using mile per gallon (mpg
), weight of the car (weight
) and their interaction to predict the price (price
). The original model is:
. reg price mpg weight c.mpg#c.weight
Source | SS df MS Number of obs = 74
-------------+------------------------------ F( 3, 70) = 13.11
Model | 228430463 3 76143487.7 Prob > F = 0.0000
Residual | 406634933 70 5809070.47 R-squared = 0.3597
-------------+------------------------------ Adj R-squared = 0.3323
Total | 635065396 73 8699525.97 Root MSE = 2410.2
--------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------------+----------------------------------------------------------------
mpg | 396.7844 185.2023 2.14 0.036 27.41003 766.1587
weight | 5.067008 1.378057 3.68 0.000 2.31856 7.815455
|
c.mpg#c.weight | -.1916795 .0711936 -2.69 0.009 -.3336706 -.0496885
|
_cons | -5944.881 4525.706 -1.31 0.193 -14971.12 3081.356
--------------------------------------------------------------------------------
If we standardized the product, the results will agree with the original:
. reg price zmpg zwt zmpgWeight
Source | SS df MS Number of obs = 74
-------------+------------------------------ F( 3, 70) = 13.11
Model | 228430457 3 76143485.6 Prob > F = 0.0000
Residual | 406634939 70 5809070.56 R-squared = 0.3597
-------------+------------------------------ Adj R-squared = 0.3323
Total | 635065396 73 8699525.97 Root MSE = 2410.2
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
zmpg | 2295.597 1071.489 2.14 0.036 158.5807 4432.614
zwt | 3938.046 1071.017 3.68 0.000 1801.97 6074.121
zmpgWeight | -1773.852 658.8436 -2.69 0.009 -3087.874 -459.8299
_cons | 6165.257 280.1802 22.00 0.000 5606.455 6724.059
------------------------------------------------------------------------------
However, if we use the product of the standardized variables, the results will different than the original. ANOVA results are the same, but you can see the p-values of the standardized mpg and weight are different:
. reg price zmpg zwt c.zmpg#c.zwt
Source | SS df MS Number of obs = 74
-------------+------------------------------ F( 3, 70) = 13.11
Model | 228430459 3 76143486.3 Prob > F = 0.0000
Residual | 406634937 70 5809070.53 R-squared = 0.3597
-------------+------------------------------ Adj R-squared = 0.3323
Total | 635065396 73 8699525.97 Root MSE = 2410.2
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
zmpg | -1052.87 556.2308 -1.89 0.063 -2162.238 56.49692
zwt | 765.3424 526.041 1.45 0.150 -283.8133 1814.498
|
c.zmpg#c.zwt | -861.8786 320.1187 -2.69 0.009 -1500.335 -223.422
|
_cons | 5478.971 378.7809 14.46 0.000 4723.517 6234.426
------------------------------------------------------------------------------