Initial zero argument in stargazer() removes negative sign

105 views Asked by At

Compare the x coefficients in outputs from the stargazer function below. The initial.zero=FALSE argument removes the negative sign. Is this expected?

set.seed(1234)
y<-rnorm(1000)
x<- -y+rnorm(1000)
lm<-lm(y~x)
require(stargazer)
stargazer(lm)
stargazer(lm, initial.zero = FALSE)
0

There are 0 answers