获取不在公式中的解释变量的系数

Getting coefficients for explanatory variables not in the formula

我有: model6 = get_model(formula="log(Y_star)~X_1_star*X_3_star", df=df)

模型摘要给我:

Coefficients:
                    Estimate Std. Error t value Pr(>|t|)    
(Intercept)       -1.049e+01  3.724e-01 -28.182  < 2e-16 ***
X_1_star           3.082e-08  7.517e-09   4.100 8.44e-05 ***
X_3_star           3.482e-07  8.708e-08   3.999 0.000122 ***
X_1_star:X_3_star -6.716e-15  7.822e-16  -8.587 1.22e-13 ***

为什么 X_1_star 和 X_3_star 的系数不在公式中?

我的公式是不是Y = b_0 + b_1*X_1_star + b_2*X_3_star + b_3*X_1_star*X_3_star

根据?formula

The * operator denotes factor crossing: a*b interpreted as a+b+a:b

根据评论,如果我们只想互动,请使用不同的符号

The terms themselves consist of variable and factor names separated by : operators. Such a term is interpreted as the interaction of all the variables and factors appearing in the term.