I'm trying to omit variables that appear in some models but not in others. However, I'm not getting the output I expect. I'm using stargazer 5.2. Here's a MWE:
y <- rbinom(100, 1, 0.5)
x <- rnorm(100)
z <- rnorm(100)
fit1.lm <- lm(y~x)
fit2.lm <- lm(y~x+z)
stargazer(fit.lm, fit2.lm,
omit=c("x", "z"),
omit.labels=c("x", "z"))
This gives the following output in the omitted section.
x & Yes & Yes \\
z & No & No \\
The entry in the second row and second column should be a Yes.