x1 <- rnorm(100)
x2 <- rnorm(100)
y1 <- 5*rnorm(100)+3*x1 + 4*x2
y2 <- rnorm(100)+5*x2
m1 <- lm (y1~x1)
m2 <- lm (y1~x2)
m3 <- lm (y1 ~ x1 + x2)
gm1 <- glm(y1~x1)
outreg(m1,title="My One Tightly Printed Regression", lyx=FALSE )
outreg(m1,tight=FALSE,modelLabels=c("Fingers"), title="My Only Spread Out Regressions" ,lyx=FALSE)
outreg(list(m1,m2),modelLabels=c("Mine","Yours"),varLabels=list(x1="Billie"), title="My Two Linear Regressions Tightly Printed" ,lyx=FALSE)
outreg(list(m1,m2),modelLabels=c("Whatever","Whichever"), title="My Two Linear Regressions Not Tightly Printed", showAIC=FALSE, lyx=FALSE)
outreg(list(m1,m2,m3),title="My Three Linear Regressions", lyx=FALSE)
outreg(list(m1,m2,m3),tight=FALSE,modelLabels=c("I Love love love really long titles","Hate Long","Medium"), lyx=FALSE)
outreg(list(gm1),modelLabels=c("GLM"), lyx=FALSE)
outreg(list(m1,gm1),modelLabels=c("OLS","GLM"), lyx=FALSE)
Run the code above in your browser using DataLab