Successfully reported this slideshow.

重回帰職人の朝は早い

14

Share

Upcoming SlideShare
学習の記録
学習の記録
Loading in …3
×
1 of 64
1 of 64

重回帰職人の朝は早い

14

Share

Download to read offline

  1. 1. ... (almost) publication-ready tables of regression model estimates. ... (memisc package description)
  2. 2. # mtable options("factor.style"="($f): ($l)") # ($f) $l) options("baselevel.sep"="-") # options("float.style"="f") # formatC format
  3. 3. library(XLConnect) book <- loadWorkbook("test.xlsx", create = TRUE) # createSheet(book, "test") # writeWorksheet(book, iris, sheet='test', startrow=0, startcol=0, header=TRUE) # saveWorkbook(book) #
  4. 4. m1 <- mtable(lm0, lm1, coef.style="default", summary.stats=c("adj. R-squared", "AIC", "BIC","N")) con <- textConnection(format(m1)) m1.df <- read.table(con, sep="t") close(con) book <- loadWorkbook("test.xlsx", create = TRUE) createSheet(book, "mtable") writeWorksheet(book, m1.df, sheet='mtable', header=FALSE) saveWorkbook(book)
  5. 5. book <- loadWorkbook("test.xlsx", create = TRUE) book["iris"] <- iris # book["iris2", startRow = 6, startCol = 11, header = FALSE] <- iris # saveWorkbook(book) book["iris"] book["iris2", header=FALSE] #

Editor's Notes

  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
    1. 1. ... (almost) publication-ready tables of regression model estimates. ... (memisc package description)
    2. 2. # mtable options("factor.style"="($f): ($l)") # ($f) $l) options("baselevel.sep"="-") # options("float.style"="f") # formatC format
    3. 3. library(XLConnect) book <- loadWorkbook("test.xlsx", create = TRUE) # createSheet(book, "test") # writeWorksheet(book, iris, sheet='test', startrow=0, startcol=0, header=TRUE) # saveWorkbook(book) #
    4. 4. m1 <- mtable(lm0, lm1, coef.style="default", summary.stats=c("adj. R-squared", "AIC", "BIC","N")) con <- textConnection(format(m1)) m1.df <- read.table(con, sep="t") close(con) book <- loadWorkbook("test.xlsx", create = TRUE) createSheet(book, "mtable") writeWorksheet(book, m1.df, sheet='mtable', header=FALSE) saveWorkbook(book)
    5. 5. book <- loadWorkbook("test.xlsx", create = TRUE) book["iris"] <- iris # book["iris2", startRow = 6, startCol = 11, header = FALSE] <- iris # saveWorkbook(book) book["iris"] book["iris2", header=FALSE] #

    Editor's Notes

  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • More Related Content

    Related Books

    Free with a 30 day trial from Scribd

    See all

    ×