Closed randomgambit closed 6 years ago
You can use t()
to transpose a huxtable:
> hr <- huxreg(linear.1, linear.2, coefs = c('complaints', 'privileges'), note = NULL)
> hr
──────────────────────────────────────────
(1) (2)
─────────────────────────────
complaints 0.692 *** 0.682 ***
(0.149) (0.129)
privileges -0.104 -0.103
(0.135) (0.129)
─────────────────────────────
N 30 30
R2 0.715 0.715
logLik -98.187 -98.206
AIC 210.375 206.412
──────────────────────────────────────────
Column names: names, model1, model2
> t(hr)
│ complain privileg N R2 logLik AIC │
│ ts es │
│ (1) │ 0.692 (0.149) -0.104 (0.135) │ 30 0.715 -98.187 210.375 │
│ │ *** │ │
│ (2) │ 0.682 (0.129) -0.103 (0.129) │ 30 0.715 -98.206 206.412 │
│ │ *** │ │
Obviously you'll need to faff around a bit with borders etc. to get what you want.
ok thanks! I will try
Hello and thanks for this amazing package!
I wonder if
huxtable
can flip a regression table. For instance, consider this examplegives :
The table is just the regular one with variables as columns. Instead, I am looking for something like
stargazer
cannot do that, and I was unable to do it withhuxtable
Am I missing something? Thanks!