r - Attribute Order -


this question has answer here:

i generate robust standard errors library(sandwich) e.g.

library(sandwich) cov.xxx <- vcovhc(xxx, type = "hc") rob.std.err.xxx <- sqrt(diag(cov.xxx)) 

then integrate in latex export presenting several models in parallel. works "well". use

library(texreg)       texreg(list(x, xx, xxx, xxxx),                custom.model.names = c("1", "2", "3", "4"),               custom.coef.names = c("constant",                "a", "b", "c",  "d",  "e", "f", "g", "h","i", "j",  "k",  "l",                "wrong sequenced element",               "n", "o", "p", "q", "r", "s", "t", "u",  "v", "w", "x"),          groups = list("var1" = 1:5,                         "var2" = 6:14,                         "var3" = 15:19, "var4" = 20:25),          sideways = t,          single.row = t,          override.se = list(c(0.1,0.1, 0.1, 0.1, 0.1),                            c(0.1, 0.1, 0.1, 0.1, 0.1,                              0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1),                            c(0.1, 0.1, 0.1, 0.1, 0.1,                              0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,                               0.1, 0.1, 0.1, 0.1, 0.1),                            **rob.std.err.xxx   #values robust regression**                   ),           caption= "zzz",           return.string = true, use.packages = false , booktabs = true, dcolumn = true, digits = 3,             file =  paste0(tablesdir, "xxxx.tex")) 

however order of attributes in rob.std.err.xxx not correspond lm model. , cannot figure out how alter se override properly. if can advise on same procedure on p-values appreciated!

all need alter sequence in rob.std.err.xxx , export target structure indicated above.

this question refers texreg "issue". mentioned in comment solution exists.

thanks in advance support.


Comments