library(rockchalk)
set.seed(2134234)
dat <- data.frame(x1 = rnorm(100), x2 = rnorm(100))
dat$y1 <- 30 + 5 * rnorm(100) + 3 * dat$x1 + 4 * dat$x2
dat$y2 <- rnorm(100) + 5 * dat$x2
m1 <- lm(y1 ~ x1, data = dat)
m2 <- lm(y1 ~ x2, data = dat)
m3 <- lm(y1 ~ x1 + x2, data = dat)
gm1 <- glm(y1 ~ x1, family = Gamma, data = dat)
or1 <- outreg(list("Amod" = m1, "Bmod" = m2, "Gmod" = m3),
              title = "My Three Linear Regressions", float = FALSE, type = "html")

 You asked for html output, but set browser = FALSE.As a result, we suspect you know what you are doing.Inspect the output object, write it to a file with cat, as in:myreg <- 
outreg(modelList = list(Amod = m1, Bmod = m2, Gmod = m3), type = "html", 
    float = FALSE, title = "My Three Linear Regressions")
 
 cat(myreg, file = "reg.html")
 Then open reg.html in a word processor or web browser.
or1 <- outreg(list("Amod" = m1, "Bmod" = m2, "Gmod" = m3),
              title = "My Three Linear Regressions", float = FALSE, type = "html")

 You asked for html output, but set browser = FALSE.As a result, we suspect you know what you are doing.Inspect the output object, write it to a file with cat, as in:myreg <- 
outreg(modelList = list(Amod = m1, Bmod = m2, Gmod = m3), type = "html", 
    float = FALSE, title = "My Three Linear Regressions")
 
 cat(myreg, file = "reg.html")
 Then open reg.html in a word processor or web browser.
cat(or1)
 
            </td> <td>Amod</td> <td>Bmod</td> <td>Gmod</td>   </tr>
             </td><td>Estimate  </td><td>Estimate  </td><td>Estimate </tr>
   (S.E.)  (S.E.)  (S.E.)
(Intercept) 30.245*** 29.774*** 30.013***
           </td><td>(0.618)  </td><td>(0.522)  </td><td>(0.490)  </tr>
x1 1.546* . 2.217***
           </td><td>(0.692)  </td><td>        </td><td>(0.555)  </tr>
x2 . 3.413*** 3.717***
           </td><td>        </td><td>(0.512)  </td><td>(0.483)  </tr>
 
N 100 100 100
RMSE 6.121 5.205 4.849
R2 0.048 0.312 0.409
adj R2 0.039 0.305 0.397
 
  • p ≤0.05** p ≤0.01*** p ≤0.001
or1 <- gsub("&nbsp;"," ", or1)
or1 <- gsub("^\\ *", "", or1)
or1 <- paste(or1, collapse = "")
or1 <- gsub("\\ \\ \\ \\ \\ \\ ", " ", or1)
or1 <- gsub("\\ \\ \\ ", " ", or1)
cat(or1)
Amod Bmod Gmod
Estimate Estimate Estimate
(S.E.) (S.E.) (S.E.)
(Intercept) 30.245*** 29.774*** 30.013***
(0.618) (0.522) (0.490)
x1 1.546* . 2.217***
(0.692) (0.555)
x2 . 3.413*** 3.717***
(0.512) (0.483)
N 100 100 100
RMSE 6.121 5.205 4.849
R2 0.048 0.312 0.409
adj R2 0.039 0.305 0.397
  • p ≤0.05** p ≤0.01*** p ≤0.001
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.10

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] rockchalk_1.8.102

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.7        knitr_1.14         magrittr_1.5      
 [4] splines_3.3.2      MASS_7.3-45        lattice_0.20-34   
 [7] minqa_1.2.4        stringr_1.1.0      car_2.1-3         
[10] tools_3.3.2        nnet_7.3-12        pbkrtest_0.4-6    
[13] parallel_3.3.2     grid_3.3.2         nlme_3.1-128      
[16] mgcv_1.8-16        quantreg_5.29      MatrixModels_0.4-1
[19] htmltools_0.3.5    yaml_2.1.13        lme4_1.1-12       
[22] assertthat_0.1     digest_0.6.10      tibble_1.2        
[25] Matrix_1.2-7.1     nloptr_1.0.4       formatR_1.4       
[28] evaluate_0.10      rmarkdown_1.1      stringi_1.1.2     
[31] SparseM_1.72      

Available under Created Commons license 3.0 CC BY