Print "hübsche" Tabellen für H2O-Modelle in R

Es gibt mehrere Pakete fürR Mit dieser Funktion können "hübsche" Tabellen (LaTeX / HTML / TEXT) aus statistischen Modellausgaben gedruckt UND die Ergebnisse alternativer Modellspezifikationen einfach verglichen werden.

Einige dieser Pakete sindapsrtable, xtable, memisc, texreg, outreg, undstargazer (Beispiele siehe hier:https: //www.r-statistics.com/2013/01/stargazer-package-for-beautiful-latex-tables-from-r-statistical-models-output).

Gibt es ein vergleichbaresR -Paket, das die Modelle des @ unterstüth2o package?

Hier ist ein Beispiel für zwei einfache GLM-Modelle mith2o was ich gerne als "schöne" Tabellen nebeneinander drucke.

# Load package and setup h2o
library(h2o)
localH2O <- h2o.init(ip = 'localhost', port = 54321, max_mem_size = '4g')

# Load data
prostatePath <- system.file("extdata", "prostate.csv", package = "h2o")
prostate.hex <- h2o.importFile(path = prostatePath, destination_frame = "prostate.hex")

# Run GLMs
model.output.1 <- h2o.glm(y = "CAPSULE", x = c("RACE","PSA","DCAPS"),
  training_frame = prostate.hex,family = "binomial", nfolds = 0, 
  alpha = 0.5, lambda_search = FALSE)
model.output.2 <- h2o.glm(y = "CAPSULE", x = c("AGE","RACE","PSA","DCAPS"), 
  training_frame = prostate.hex, family = "binomial", nfolds = 0, 
  alpha = 0.5, lambda_search = FALSE)

So würde es bei einem normalen GLM-Objekt mit @ aussehscreenreg() von demtexreg package:

library(data.table)
library(texreg)
d <- fread(prostatePath)
model.output.1.glm <- glm(CAPSULE ~ RACE + PSA + DCAPS, data=d)
model.output.2.glm <- glm(CAPSULE ~ AGE + RACE + PSA + DCAPS, data=d)
screenreg(list(model.output.1.glm, model.output.2.glm))

Antworten auf die Frage(6)

Ihre Antwort auf die Frage