Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

重回帰職人の朝は早い

4,146 views

Published on

Published in: Technology
  • Be the first to comment

重回帰職人の朝は早い

  1. 1. ... (almost) publication-ready tablesof regression model estimates. ...(memisc package description)
  2. 2. # mtableoptions("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]#

×