Order variables with interaction in stargazer regression output
问题 I have the following regressions: fit1 <- lm(y ~ x1, data = data) fit2 <- lm(y ~ x1 + x2, data = data) fit3 <- lm(y ~ x3 * x1, data = data) I want in the output the explanatory variables to be order (x1, x2, x3 and finally the interaction). I try the following with order but still the interaction appears second after x1. What may be wrong here? stargazer(fit1, fit2, fit3, align=TRUE, table.placement="H",omit.stat=c("f", "ser"), order=c("x1", "x2", "x3", "x3:x1")) 回答1: The help-file for order